summaryrefslogtreecommitdiffstats
path: root/Modules/_sre.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-03-31 14:44:22 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-03-31 14:44:22 (GMT)
commitb049325e922ecf480432f43b106de136bd877a9b (patch)
tree477cef2c5a80851733c5cd365f8108fb02f9dfce /Modules/_sre.c
parent031829d3ef22fcc0f5a6d325fee075ee11186599 (diff)
downloadcpython-b049325e922ecf480432f43b106de136bd877a9b.zip
cpython-b049325e922ecf480432f43b106de136bd877a9b.tar.gz
cpython-b049325e922ecf480432f43b106de136bd877a9b.tar.bz2
Use symbolic METH_VARARGS/METH_OLDARGS instead of 1/0 for ml_flags
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r--Modules/_sre.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c
index 769965f..bf787d4 100644
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -2938,8 +2938,8 @@ scanner_search(ScannerObject* self, PyObject* args)
}
static PyMethodDef scanner_methods[] = {
- {"match", (PyCFunction) scanner_match, 0},
- {"search", (PyCFunction) scanner_search, 0},
+ {"match", (PyCFunction) scanner_match, METH_OLDARGS},
+ {"search", (PyCFunction) scanner_search, METH_OLDARGS},
{NULL, NULL}
};
@@ -2974,9 +2974,9 @@ statichere PyTypeObject Scanner_Type = {
};
static PyMethodDef _functions[] = {
- {"compile", _compile, 1},
- {"getcodesize", sre_codesize, 1},
- {"getlower", sre_getlower, 1},
+ {"compile", _compile, METH_VARARGS},
+ {"getcodesize", sre_codesize, METH_VARARGS},
+ {"getlower", sre_getlower, METH_VARARGS},
{NULL, NULL}
};