New submission from George Boutsioukis <gboutsiou...@gmail.com>: 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. ---------- components: 2to3 (2.x to 3.0 conversion tool) messages: 112099 nosy: gboutsioukis priority: normal severity: normal status: open title: 2to3 reapplies fix_dict type: behavior versions: Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9431> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com