Kaydet (Commit) 51ee09b9 authored tarafından Jeremy Hylton's avatar Jeremy Hylton

Don't call Py_FatalError in module initialization

(leaving the rest of the modules for Barry)
üst d320c348
...@@ -2352,8 +2352,4 @@ init_curses(void) ...@@ -2352,8 +2352,4 @@ init_curses(void)
SetDictInt("KEY_MIN", KEY_MIN); SetDictInt("KEY_MIN", KEY_MIN);
SetDictInt("KEY_MAX", KEY_MAX); 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) ...@@ -452,7 +452,4 @@ init_locale(void)
x = PyString_FromString(locale__doc__); x = PyString_FromString(locale__doc__);
PyDict_SetItemString(d, "__doc__", x); PyDict_SetItemString(d, "__doc__", x);
Py_XDECREF(x); Py_XDECREF(x);
if (PyErr_Occurred())
Py_FatalError("Can't initialize module _locale");
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment