Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b82d34f commit bb2769fCopy full SHA for bb2769f
1 file changed
Modules/_sre.c
@@ -2938,8 +2938,10 @@ scanner_search(ScannerObject* self, PyObject* args)
2938
}
2939
2940
static PyMethodDef scanner_methods[] = {
2941
- {"match", (PyCFunction) scanner_match, METH_OLDARGS},
2942
- {"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 */
2943
+ {"match", (PyCFunction) scanner_match, 0},
2944
+ {"search", (PyCFunction) scanner_search, 0},
2945
{NULL, NULL}
2946
};
2947
0 commit comments