]> granicus.if.org Git - python/commitdiff
initregex(): this function is declared void, so the recent change to
authorTim Peters <tim.peters@gmail.com>
Mon, 9 Jul 2001 18:15:38 +0000 (18:15 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 9 Jul 2001 18:15:38 +0000 (18:15 +0000)
return NULL in an error case was itself an error.

Modules/regexmodule.c

index dc2f19aa68476e90f70662593294d1bea3291509..c0e465aadb72efc5a6f4eaeaab182094d92faf99 100644 (file)
@@ -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);