[New-bugs-announce] [issue9431] 2to3 reapplies fix_dict
George Boutsioukis
report at bugs.python.org
Fri Jul 30 21:28:21 CEST 2010
New submission from George Boutsioukis <gboutsioukis at 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 <report at bugs.python.org>
<http://bugs.python.org/issue9431>
_______________________________________
More information about the New-bugs-announce
mailing list