summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-07-04 21:48:16 (GMT)
committerBrett Cannon <brett@python.org>2013-07-04 21:48:16 (GMT)
commit82da8886cc3d8166ab8ef5a257cb04a32ddb1720 (patch)
tree081cfaea38e07f443861716a38c7bc778431153a /Lib/importlib
parent45091c0a0c4b759f36a2094d324e9e2022b4106b (diff)
downloadcpython-82da8886cc3d8166ab8ef5a257cb04a32ddb1720.zip
cpython-82da8886cc3d8166ab8ef5a257cb04a32ddb1720.tar.gz
cpython-82da8886cc3d8166ab8ef5a257cb04a32ddb1720.tar.bz2
Issue #15767: Revert 3a50025f1900 for ModuleNotFoundError
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index 67304a3..09d8f0e 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -1617,7 +1617,7 @@ def _gcd_import(name, package=None, level=0):
_imp.release_lock()
message = ("import of {} halted; "
"None in sys.modules".format(name))
- raise ModuleNotFoundError(message, name=name)
+ raise ImportError(message, name=name)
_lock_unlock_module(name)
return module