diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-08-30 20:22:21 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-08-30 20:22:21 (GMT) |
commit | 1c1dcbfd5db9ec3e47ca9ddf28e7c6b87f09eb19 (patch) | |
tree | f5c9b6ba568ea86b2c0d29c79021ca050b2e7bfd /Misc/NEWS | |
parent | 82a23fe3925245086460eb7da95bbdc39cd2454a (diff) | |
download | cpython-1c1dcbfd5db9ec3e47ca9ddf28e7c6b87f09eb19.zip cpython-1c1dcbfd5db9ec3e47ca9ddf28e7c6b87f09eb19.tar.gz cpython-1c1dcbfd5db9ec3e47ca9ddf28e7c6b87f09eb19.tar.bz2 |
Trying to import a submodule from another module and not a package was raising
AttributeError in importlib when it should be an ImportError.
Found when running importlib against test_runpy.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -68,6 +68,9 @@ C-API Library ------- +- Trying to import a submodule from a module that is not a package, ImportError + should be raised, not AttributeError. + - When the globals past to importlib.__import__() has __package__ set to None, fall back to computing what __package__ should be instead of giving up. |