[issue3218] 2to3 Fix_imports optimization
Collin Winter
report at bugs.python.org
Mon Jul 14 03:11:23 CEST 2008
Collin Winter <collinw at gmail.com> added the comment:
fix_imports.diff fails to apply cleanly against HEAD of fix_imports.py.
Also, fix_imports2 now inherits from fix_imports, so it needs to be
fixed as well.
+ yield """power< module_name=%r
+ trailer<'.' import_as_names< any > > any* >
+ """ % old_module
Why are you using import_as_names here? That's meant to match a series
of "NAME [as NAME]" in import statements, where this part of the pattern
is meant to match usages of "urllib.foo()" in the code.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3218>
_______________________________________
More information about the Python-bugs-list
mailing list