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

return NULL in an error case was itself an error.
This commit is contained in:
Tim Peters 2001-07-09 18:15:38 +00:00
parent 67f193faab
commit 06e415fe52
1 changed files with 1 additions and 1 deletions

View File

@ -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);