diff options
Diffstat (limited to 'Modules/regexmodule.c')
-rw-r--r-- | Modules/regexmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c index 981dc8c..7a289d5 100644 --- a/Modules/regexmodule.c +++ b/Modules/regexmodule.c @@ -718,7 +718,7 @@ initregex() d = PyModule_GetDict(m); /* Initialize regex.error exception */ - v = RegexError = PyString_FromString("regex.error"); + v = RegexError = PyErr_NewException("regex.error", NULL, NULL); if (v == NULL || PyDict_SetItemString(d, "error", v) != 0) goto finally; @@ -742,5 +742,5 @@ initregex() if (!PyErr_Occurred()) return; finally: - Py_FatalError("can't initialize regex module"); + /* Nothing */ ; } |