[issue6400] incorrect commands import

2009-07-02 Thread Alejandro Santos
Alejandro Santos added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue6400] incorrect commands import

2009-07-02 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6400] incorrect commands import

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the bug report! Fixed in r73771. Now when I run it on mercurial/dispatch.py I get: --- mercurial/dispatch.py (original) +++ mercurial/dispatch.py (refactored) @@ -5,11 +5,11 @@ # This software may be used and distributed according to the terms of

[issue6400] incorrect commands import

2009-07-02 Thread Alejandro Santos
Alejandro Santos added the comment: Sorry. Yes, there is an "__init__.py" script on the same level as the "commands.py". I forgot to mention it. /mymodule/commands.py /mymodule/a.py /mymodule/__init__.py This is the real repository: http://selenic.com/repo/hg/file/b81baf9e4dd6/mercurial

[issue6400] incorrect commands import

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Oh, I see the problem. mymodule/ isn't a package. If it has __init__.py, this should work. -- ___ Python tracker ___

[issue6400] incorrect commands import

2009-07-02 Thread Alejandro
Alejandro added the comment: The one included on Python 3.1-rc2. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue6400] incorrect commands import

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: What version of 2to3 are you using? -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python

[issue6400] incorrect commands import

2009-07-02 Thread Alejandro
New submission from Alejandro : 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" ocurrence