mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Don't call Py_FatalError in module initialization
(leaving the rest of the modules for Barry)
This commit is contained in:
parent
d320c348f8
commit
51ee09b995
2 changed files with 0 additions and 7 deletions
|
@ -2352,8 +2352,4 @@ init_curses(void)
|
|||
SetDictInt("KEY_MIN", KEY_MIN);
|
||||
SetDictInt("KEY_MAX", KEY_MAX);
|
||||
}
|
||||
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module _curses");
|
||||
}
|
||||
|
|
|
@ -452,7 +452,4 @@ init_locale(void)
|
|||
x = PyString_FromString(locale__doc__);
|
||||
PyDict_SetItemString(d, "__doc__", x);
|
||||
Py_XDECREF(x);
|
||||
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("Can't initialize module _locale");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue