mirror of https://github.com/python/cpython
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:
parent
67f193faab
commit
06e415fe52
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue