Commit bb2769f5 authored by Neal Norwitz's avatar Neal Norwitz

Revert use of METH_OLDARGS (use 0) to support 1.5.2

parent b82d34f9
......@@ -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}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment