diff options
author | Brett Cannon <brett@python.org> | 2013-07-04 21:51:50 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-07-04 21:51:50 (GMT) |
commit | 679ecb565be82ade822411dcfb1b954a60954890 (patch) | |
tree | 2e06376ed152ad58a882c57566a5d11549803644 /Python/ceval.c | |
parent | 82da8886cc3d8166ab8ef5a257cb04a32ddb1720 (diff) | |
download | cpython-679ecb565be82ade822411dcfb1b954a60954890.zip cpython-679ecb565be82ade822411dcfb1b954a60954890.tar.gz cpython-679ecb565be82ade822411dcfb1b954a60954890.tar.bz2 |
Issue #15767: back out 8a0ed9f63c6e, finishing the removal of
ModuleNotFoundError.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 1e2637c..e184ef6 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -4588,7 +4588,7 @@ import_from(PyObject *v, PyObject *name) 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; } |