summaryrefslogtreecommitdiffstats
path: root/Modules/_sre.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r--Modules/_sre.c6
1 files 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}
};