This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author simohe
Recipients simohe
Date 2011-08-30.21:59:21
SpamBayes Score 0.0002877737
Marked as misclassified No
Message-id <1314741561.82.0.752843827348.issue12864@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2011-08-30 21:59:21simohesetrecipients: + simohe
2011-08-30 21:59:21simohesetmessageid: <1314741561.82.0.752843827348.issue12864@psf.upfronthosting.co.za>
2011-08-30 21:59:21simohelinkissue12864 messages
2011-08-30 21:59:21simohecreate