mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -663,7 +663,7 @@ initregex(void)
|
|||
if (PyErr_Warn(PyExc_DeprecationWarning,
|
||||
"the regex module is deprecated; "
|
||||
"please use the re module") < 0)
|
||||
return NULL;
|
||||
return;
|
||||
|
||||
/* Initialize regex.error exception */
|
||||
v = RegexError = PyErr_NewException("regex.error", NULL, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue