New submission from Alejandro <alej...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue6400>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to