diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-07-09 18:15:38 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-07-09 18:15:38 (GMT) |
commit | 06e415fe52796629dd1342bb02103b5a51fbcd9a (patch) | |
tree | 53994fce9a77e1947096516262af3c4934a0978f /Modules | |
parent | 67f193faabcaa96e3a18ebde637986aafac6f5a7 (diff) | |
download | cpython-06e415fe52796629dd1342bb02103b5a51fbcd9a.zip cpython-06e415fe52796629dd1342bb02103b5a51fbcd9a.tar.gz cpython-06e415fe52796629dd1342bb02103b5a51fbcd9a.tar.bz2 |
initregex(): this function is declared void, so the recent change to
return NULL in an error case was itself an error.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/regexmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c index dc2f19a..c0e465a 100644 --- a/Modules/regexmodule.c +++ b/Modules/regexmodule.c @@ -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); |