summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-09-01 03:46:16 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-09-01 03:46:16 (GMT)
commit51ee09b99539b5bdf54ad91670820adf57d462d8 (patch)
tree0990e3d09b437c7cd0e28e2225b70f0bcd35d2ae
parentd320c348f8c0115ce95a80524ac102ad5f6372ff (diff)
downloadcpython-51ee09b99539b5bdf54ad91670820adf57d462d8.zip
cpython-51ee09b99539b5bdf54ad91670820adf57d462d8.tar.gz
cpython-51ee09b99539b5bdf54ad91670820adf57d462d8.tar.bz2
Don't call Py_FatalError in module initialization
(leaving the rest of the modules for Barry)
-rw-r--r--Modules/_cursesmodule.c4
-rw-r--r--Modules/_localemodule.c3
2 files changed, 0 insertions, 7 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 8816901..1920ee0 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -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");
}
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index 5dabfca..2588b8e 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -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");
}