summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorMilan Oberkirch <zvyn@oberkirch.org>2017-06-14 21:34:50 (GMT)
committerBrett Cannon <brettcannon@users.noreply.github.com>2017-06-14 21:34:50 (GMT)
commit8c3f05e9f0f0b30a3d4a2433e92471794d8258af (patch)
tree57f6ae60b1701bf4ca4be1f9db1afce1e2bea795 /Misc/NEWS
parent32fd874afe55e396e3c9a5af35e7bb3d8e0b8f02 (diff)
downloadcpython-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/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 31e8ec0..7452b25 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.