mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Revert use of METH_OLDARGS (use 0) to support 1.5.2
This commit is contained in:
parent
b82d34f91e
commit
bb2769f580
1 changed files with 4 additions and 2 deletions
|
@ -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}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue