From: Tim Peters Date: Mon, 9 Jul 2001 18:15:38 +0000 (+0000) Subject: initregex(): this function is declared void, so the recent change to X-Git-Tag: v2.2a3~1297 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06e415fe52796629dd1342bb02103b5a51fbcd9a;p=python initregex(): this function is declared void, so the recent change to return NULL in an error case was itself an error. --- diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c index dc2f19aa68..c0e465aadb 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);