New submission from simohe <sim...@besonet.ch>: When the current module is in a package and imports submodules, the following lines are converted to illegal code.
-import sub.subsub +from . import sub.subsub -import sub, sub.subsub, sub2 +from . import sub, sub.subsub, sub2 A valid alternative: -import sub.subsub +from .sub import subsub as _dummy -import sub, sub.subsub, sub2 +from . import sub, sub2\nfrom .sub import subsub as _dummy ---------- components: 2to3 (2.x to 3.0 conversion tool) messages: 143237 nosy: simohe priority: normal severity: normal status: open title: 2to3 creates illegal code on import a.b inside a package versions: Python 2.6, Python 3.1 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12864> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com