summaryrefslogtreecommitdiffstats
path: root/Objects/exceptions.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-07-04 21:51:50 (GMT)
committerBrett Cannon <brett@python.org>2013-07-04 21:51:50 (GMT)
commit679ecb565be82ade822411dcfb1b954a60954890 (patch)
tree2e06376ed152ad58a882c57566a5d11549803644 /Objects/exceptions.c
parent82da8886cc3d8166ab8ef5a257cb04a32ddb1720 (diff)
downloadcpython-679ecb565be82ade822411dcfb1b954a60954890.zip
cpython-679ecb565be82ade822411dcfb1b954a60954890.tar.gz
cpython-679ecb565be82ade822411dcfb1b954a60954890.tar.bz2
Issue #15767: back out 8a0ed9f63c6e, finishing the removal of
ModuleNotFoundError.
Diffstat (limited to 'Objects/exceptions.c')
-rw-r--r--Objects/exceptions.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c
index 23f6605..79bbb8f 100644
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -710,13 +710,6 @@ ComplexExtendsException(PyExc_Exception, ImportError,
"module.");
/*
- * ModuleNotFoundError extends ImportError
- */
-
-MiddlingExtendsException(PyExc_ImportError, ModuleNotFoundError, ImportError,
- "Module not found.");
-
-/*
* OSError extends Exception
*/
@@ -2402,7 +2395,6 @@ _PyExc_Init(PyObject *bltinmod)
PRE_INIT(SystemExit)
PRE_INIT(KeyboardInterrupt)
PRE_INIT(ImportError)
- PRE_INIT(ModuleNotFoundError)
PRE_INIT(OSError)
PRE_INIT(EOFError)
PRE_INIT(RuntimeError)
@@ -2473,7 +2465,6 @@ _PyExc_Init(PyObject *bltinmod)
POST_INIT(SystemExit)
POST_INIT(KeyboardInterrupt)
POST_INIT(ImportError)
- POST_INIT(ModuleNotFoundError)
POST_INIT(OSError)
INIT_ALIAS(EnvironmentError, OSError)
INIT_ALIAS(IOError, OSError)