summaryrefslogtreecommitdiffstats
path: root/Modules/regexmodule.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-07-09 18:15:38 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-07-09 18:15:38 (GMT)
commit06e415fe52796629dd1342bb02103b5a51fbcd9a (patch)
tree53994fce9a77e1947096516262af3c4934a0978f /Modules/regexmodule.c
parent67f193faabcaa96e3a18ebde637986aafac6f5a7 (diff)
downloadcpython-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/regexmodule.c')
-rw-r--r--Modules/regexmodule.c2
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);