[issue6400] incorrect commands import
Alejandro
report at bugs.python.org
Thu Jul 2 15:09:40 CEST 2009
New submission from Alejandro <alejolp at alejolp.com>:
I'm porting a project to Py3k wich contains a "commands.py" script on
the project's module.
Inside "a.py" there is an "import commands" statement:
/mymodule/commands.py
/mymodule/a.py
The 2to3 tool replaces the "import commands" and all the "commands"
ocurrences with the word "subprocess".
Is is possible to adapt the fix_imports fixer to detect a local import,
like the fix_import fixer (probably_a_local_import)?
----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 90010
nosy: alejolp
severity: normal
status: open
title: incorrect commands import
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6400>
_______________________________________
More information about the Python-bugs-list
mailing list