commit | 8c3f05e9f0f0b30a3d4a2433e92471794d8258af | [log] [tgz] |
---|---|---|
author | Milan Oberkirch <zvyn@oberkirch.org> | Thu Jun 15 07:34:50 2017 +1000 |
committer | Brett Cannon <brettcannon@users.noreply.github.com> | Wed Jun 14 14:34:50 2017 -0700 |
tree | 57f6ae60b1701bf4ca4be1f9db1afce1e2bea795 | |
parent | 32fd874afe55e396e3c9a5af35e7bb3d8e0b8f02 [diff] |
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.