Mailing List Archive

CVS: python/dist/src/Modules _sre.c,2.78,2.79
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv30333

Modified Files:
_sre.c
Log Message:
Revert use of METH_OLDARGS (use 0) to support 1.5.2

Index: _sre.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_sre.c,v
retrieving revision 2.78
retrieving revision 2.79
diff -C2 -d -r2.78 -r2.79
*** _sre.c 31 Mar 2002 14:44:22 -0000 2.78
--- _sre.c 31 Mar 2002 15:46:00 -0000 2.79
***************
*** 2939,2944 ****

static PyMethodDef scanner_methods[] = {
! {"match", (PyCFunction) scanner_match, METH_OLDARGS},
! {"search", (PyCFunction) scanner_search, METH_OLDARGS},
{NULL, NULL}
};
--- 2939,2946 ----

static PyMethodDef scanner_methods[] = {
! /* 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}
};