[issue12864] 2to3 creates illegal code on import a.b inside a package

Éric Araujo report at bugs.python.org
Sun Mar 25 09:03:36 CEST 2012


Éric Araujo <merwok at netwok.org> added the comment:

-import sub.subsub
+from .sub import subsub as _dummy

That’s partly incorrect, as you need to bind the name sub to match the original code.

----------
nosy: +eric.araujo

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


More information about the Python-bugs-list mailing list