diff Python/ceval.c @ 84445:ee9662d77ebb

Issue #15767: back out 8a0ed9f63c6e, finishing the removal of ModuleNotFoundError.
author Brett Cannon <brett@python.org>
date Thu, 04 Jul 2013 17:51:50 -0400
parents 8a0ed9f63c6e
children f4311870e329
line wrap: on
line diff
--- a/Python/ceval.c	Thu Jul 04 17:48:16 2013 -0400
+++ b/Python/ceval.c	Thu Jul 04 17:51:50 2013 -0400
@@ -4588,7 +4588,7 @@
 
     x = PyObject_GetAttr(v, name);
     if (x == NULL && PyErr_ExceptionMatches(PyExc_AttributeError)) {
-        PyErr_Format(PyExc_ModuleNotFoundError, "cannot import name %S", name);
+        PyErr_Format(PyExc_ImportError, "cannot import name %S", name);
     }
     return x;
 }