diff options
author | Milan Oberkirch <zvyn@oberkirch.org> | 2017-06-14 21:34:50 (GMT) |
---|---|---|
committer | Brett Cannon <brettcannon@users.noreply.github.com> | 2017-06-14 21:34:50 (GMT) |
commit | 8c3f05e9f0f0b30a3d4a2433e92471794d8258af (patch) | |
tree | 57f6ae60b1701bf4ca4be1f9db1afce1e2bea795 /Misc/NEWS | |
parent | 32fd874afe55e396e3c9a5af35e7bb3d8e0b8f02 (diff) | |
download | cpython-8c3f05e9f0f0b30a3d4a2433e92471794d8258af.zip cpython-8c3f05e9f0f0b30a3d4a2433e92471794d8258af.tar.gz cpython-8c3f05e9f0f0b30a3d4a2433e92471794d8258af.tar.bz2 |
bpo-30436: Raise ModuleNotFoundError for importlib.util.find_spec() when parent isn't a package (GH-1899)
Previously AttributeError was raised, but that's not very reflective of the fact that the requested module can't be found since the specified parent isn't actually a package.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -441,6 +441,10 @@ Library - bpo-30149: inspect.signature() now supports callables with variable-argument parameters wrapped with partialmethod. Patch by Dong-hee Na. + +- bpo-30436: importlib.find_spec() raises ModuleNotFoundError instead of + AttributeError if the specified parent module is not a package + (i.e. lacks a __path__ attribute). - bpo-30301: Fix AttributeError when using SimpleQueue.empty() under *spawn* and *forkserver* start methods. |