From 06e415fe52796629dd1342bb02103b5a51fbcd9a Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 9 Jul 2001 18:15:38 +0000 Subject: [PATCH] initregex(): this function is declared void, so the recent change to return NULL in an error case was itself an error. --- Modules/regexmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.49.0