New submission from Brett Cannon <[EMAIL PROTECTED]>: ``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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue3260> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com