]> granicus.if.org Git - python/commit
Issue #26367: Have importlib.__init__() raise RuntimeError when
authorBrett Cannon <brett@python.org>
Sat, 20 Feb 2016 20:52:06 +0000 (12:52 -0800)
committerBrett Cannon <brett@python.org>
Sat, 20 Feb 2016 20:52:06 +0000 (12:52 -0800)
commit4f38cb41fe022c94bb5569c72d8b48020d8c13d4
tree6d6e1763c211a140c82462c2c9530030e1c292b8
parente10d370a929a80bc0708daea4bf4bc0715da9706
Issue #26367: Have importlib.__init__() raise RuntimeError when
'level' is specified but no __package__.

This brings the function inline with builtins.__import__(). Thanks to
Manuel Jacob for the patch.
Lib/importlib/_bootstrap.py
Lib/test/test_importlib/import_/test_relative_imports.py
Misc/NEWS
Python/importlib.h