[issue21762] update the import machinery to only use __spec__
Brett Cannon
report at bugs.python.org
Fri Jan 22 18:28:43 EST 2016
Brett Cannon added the comment:
__package__ != __spec__.parent now triggers an ImportWarning.
----------
dependencies: +Raise an ImportWarning when __spec__.parent/__package__ isn't defined for a relative import
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21762>
_______________________________________
More information about the Python-bugs-list
mailing list