Author gboutsioukis
Recipients gboutsioukis
Date 2010-07-30.19:28:18
SpamBayes Score 3.72393e-06
Marked as misclassified No
Message-id <1280518101.61.0.560600920548.issue9431@psf.upfronthosting.co.za>
In-reply-to
Content
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/options.py 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.
History
Date User Action Args
2010-07-30 19:28:21gboutsioukissetrecipients: + gboutsioukis
2010-07-30 19:28:21gboutsioukissetmessageid: <1280518101.61.0.560600920548.issue9431@psf.upfronthosting.co.za>
2010-07-30 19:28:19gboutsioukislinkissue9431 messages
2010-07-30 19:28:18gboutsioukiscreate