Commit 06e415fe authored by Tim Peters's avatar Tim Peters

initregex(): this function is declared void, so the recent change to

return NULL in an error case was itself an error.
parent 67f193fa
...@@ -663,7 +663,7 @@ initregex(void) ...@@ -663,7 +663,7 @@ initregex(void)
if (PyErr_Warn(PyExc_DeprecationWarning, if (PyErr_Warn(PyExc_DeprecationWarning,
"the regex module is deprecated; " "the regex module is deprecated; "
"please use the re module") < 0) "please use the re module") < 0)
return NULL; return;
/* Initialize regex.error exception */ /* Initialize regex.error exception */
v = RegexError = PyErr_NewException("regex.error", NULL, NULL); v = RegexError = PyErr_NewException("regex.error", NULL, NULL);
......
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