classification
Title: fix_imports does not handle intra-package renames
Type: behavior
Components: 2to3 (2.x to 3.0 conversion tool) Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: collinwinter Nosy List: brett.cannon, collinwinter
Priority: high Keywords:

Created on 2008-07-02 20:02 by brett.cannon, last changed 2008-07-02 20:02 by brett.cannon.

Messages
msg69114 (view) Author: Brett Cannon (brett.cannon) Date: 2008-07-02 20:02
``from test import test_support`` should lead to ``from test import
support as test_support``. Also does not work for ``from
test.test_support import Error``.

There is also no good way to handle ``import test.test_support`` since
``import test.test_support as test.support`` is an error. Perhaps
``import test.support; test.test_support = support``?

At the moment test.support is the only rename like this, so it is not
critical that this be fixed immediately as probably few people use the
module outside of the stdlib.
History
Date User Action Args
2008-07-11 01:52:40brett.cannonlinkissue2775 dependencies
2008-07-02 20:02:14brett.cannoncreate