mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #15767: back out 8a0ed9f63c6e, finishing the removal of
ModuleNotFoundError.
This commit is contained in:
parent
82da8886cc
commit
679ecb565b
17 changed files with 412 additions and 427 deletions
|
@ -709,13 +709,6 @@ ComplexExtendsException(PyExc_Exception, ImportError,
|
|||
"Import can't find module, or can't find name in "
|
||||
"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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue