]> granicus.if.org Git - python/commitdiff
Revert use of METH_OLDARGS (use 0) to support 1.5.2
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 31 Mar 2002 15:46:00 +0000 (15:46 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 31 Mar 2002 15:46:00 +0000 (15:46 +0000)
Modules/_sre.c

index bf787d4487206fb7a705753f7855642bd088d547..b98f6e69a94a40d62601a38a2394f87559e26709 100644 (file)
@@ -2938,8 +2938,10 @@ scanner_search(ScannerObject* self, PyObject* args)
 }
 
 static PyMethodDef scanner_methods[] = {
-    {"match", (PyCFunction) scanner_match, METH_OLDARGS},
-    {"search", (PyCFunction) scanner_search, METH_OLDARGS},
+    /* FIXME: use METH_OLDARGS instead of 0 or fix to use METH_VARARGS */
+    /*        METH_OLDARGS is not in Python 1.5.2 */
+    {"match", (PyCFunction) scanner_match, 0},
+    {"search", (PyCFunction) scanner_search, 0},
     {NULL, NULL}
 };