From bb2769f580ff38353c3994f7798c9a8267fe9d35 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 31 Mar 2002 15:46:00 +0000 Subject: Revert use of METH_OLDARGS (use 0) to support 1.5.2 --- Modules/_sre.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules/_sre.c b/Modules/_sre.c index bf787d4..b98f6e6 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} }; -- cgit v0.12