[New-bugs-announce] [issue3260] fix_imports does not handle intra-package renames

Brett Cannon report at bugs.python.org
Wed Jul 2 22:02:15 CEST 2008


New submission from Brett Cannon <brett at python.org>:

``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.

----------
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
messages: 69114
nosy: brett.cannon, collinwinter
priority: high
severity: normal
status: open
title: fix_imports does not handle intra-package renames
type: behavior

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3260>
_______________________________________


More information about the New-bugs-announce mailing list