diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-03-31 15:46:00 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-03-31 15:46:00 (GMT) |
commit | bb2769f580ff38353c3994f7798c9a8267fe9d35 (patch) | |
tree | 269879a9f6184db92675c24afb831d12d3b47e17 /Modules | |
parent | b82d34f91eb2f43000cf7a8249aa74cc6b13d060 (diff) | |
download | cpython-bb2769f580ff38353c3994f7798c9a8267fe9d35.zip cpython-bb2769f580ff38353c3994f7798c9a8267fe9d35.tar.gz cpython-bb2769f580ff38353c3994f7798c9a8267fe9d35.tar.bz2 |
Revert use of METH_OLDARGS (use 0) to support 1.5.2
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_sre.c | 6 |
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} }; |