From: Neal Norwitz Date: Sun, 31 Mar 2002 15:46:00 +0000 (+0000) Subject: Revert use of METH_OLDARGS (use 0) to support 1.5.2 X-Git-Tag: v2.3c1~6214 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb2769f580ff38353c3994f7798c9a8267fe9d35;p=python Revert use of METH_OLDARGS (use 0) to support 1.5.2 --- diff --git a/Modules/_sre.c b/Modules/_sre.c index bf787d4487..b98f6e69a9 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -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} };