]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #15111: When a module was imported using a 'from import'
authorBrett Cannon <brett@python.org>
Tue, 10 Jul 2012 14:05:00 +0000 (10:05 -0400)
committerBrett Cannon <brett@python.org>
Tue, 10 Jul 2012 14:05:00 +0000 (10:05 -0400)
commit461c8131648e26d14e4840d11c3cbd1da99cd04f
tree24b3f6c5970ff0697086ed71f2493602d8f0c5cf
parentc4618e33b2ef1c6f1cb2d8d3c2e23dfcca9f5f44
Issue #15111: When a module was imported using a 'from import'
statement (e.g. ``from distutils import msvc9compiler``) that triggers
an ImportError of its own (e.g. the non-existence of winreg), let that
exception propagate instead of raising a generic ImportError for the
module being requested (e.g. msvc9compiler).
Lib/importlib/_bootstrap.py
Lib/importlib/test/import_/test_fromlist.py
Misc/NEWS
Python/importlib.h