Author gboutsioukis
Recipients gboutsioukis
Date 2010-07-30.19:28:18
SpamBayes Score 3.72393e-06
Marked as misclassified No
Message-id <>
This only happens on somewhat complex files, I haven't been able yet to isolate the source of this but here goes:

For django trunk, running 2to3 on django/contrib/admin/ yields the following:

@@ -282,7 +282,7 @@
         if self.declared_fieldsets:
             return self.declared_fieldsets
         form = self.get_form(request, obj)
-        fields = [..].keys() + list([...])
+        fields = list(list([...]keys())) + list([...])

instead of

+        fields = list([...].keys()) + etc.

and there are a couple of more instances in the same file.

However running 2to3 on the single line above, out of the file gives the correct result. This is only an issue with the fix_dict fixer.
Date User Action Args
2010-07-30 19:28:21gboutsioukissetrecipients: + gboutsioukis
2010-07-30 19:28:21gboutsioukissetmessageid: <>
2010-07-30 19:28:19gboutsioukislinkissue9431 messages
2010-07-30 19:28:18gboutsioukiscreate