]> granicus.if.org Git - python/commit
Issue #14592: A relative import will raise a KeyError if __package__
authorBrett Cannon <brett@python.org>
Tue, 17 Apr 2012 23:05:11 +0000 (19:05 -0400)
committerBrett Cannon <brett@python.org>
Tue, 17 Apr 2012 23:05:11 +0000 (19:05 -0400)
commit273323cf68e8d55c67622412ecf531e359a54e11
treeddac9de01083d9e7a165c83455493ee31d32ce21
parent09b86d1196427f2028d7e072b106847d8c693815
Issue #14592: A relative import will raise a KeyError if __package__
or __name__ are not set in globals.

Thanks to Stefan Behnel for the bug report.
Lib/importlib/test/import_/test_relative_imports.py
Misc/NEWS
Python/import.c