summaryrefslogtreecommitdiffstats
path: root/Modules/regexmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-01-17 23:15:58 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-01-17 23:15:58 (GMT)
commit43b936d08c51726205123ae1af5c5f8b5d3b6fcb (patch)
tree1c3e3fd7ec72d71f92f1f0480291c5efc7f19eaf /Modules/regexmodule.c
parentc0e1671c71dfcf25c8584b06a2e9584a8806a325 (diff)
downloadcpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.zip
cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.gz
cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.bz2
Patch #477750: Use METH_ constants in Modules.
Diffstat (limited to 'Modules/regexmodule.c')
-rw-r--r--Modules/regexmodule.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c
index c3711e6..e65258d 100644
--- a/Modules/regexmodule.c
+++ b/Modules/regexmodule.c
@@ -246,9 +246,9 @@ regobj_group(regexobject *re, PyObject *args)
static struct PyMethodDef reg_methods[] = {
- {"match", (PyCFunction)regobj_match, 1},
- {"search", (PyCFunction)regobj_search, 1},
- {"group", (PyCFunction)regobj_group, 1},
+ {"match", (PyCFunction)regobj_match, METH_VARARGS},
+ {"search", (PyCFunction)regobj_search, METH_VARARGS},
+ {"group", (PyCFunction)regobj_group, METH_VARARGS},
{NULL, NULL} /* sentinel */
};
@@ -638,12 +638,12 @@ regex_get_syntax(PyObject *self, PyObject *args)
static struct PyMethodDef regex_global_methods[] = {
- {"compile", regex_compile, 1},
- {"symcomp", regex_symcomp, 1},
- {"match", regex_match, 0},
- {"search", regex_search, 0},
- {"set_syntax", regex_set_syntax, 0},
- {"get_syntax", regex_get_syntax, 0},
+ {"compile", regex_compile, METH_VARARGS},
+ {"symcomp", regex_symcomp, METH_VARARGS},
+ {"match", regex_match, METH_OLDARGS},
+ {"search", regex_search, METH_OLDARGS},
+ {"set_syntax", regex_set_syntax, METH_OLDARGS},
+ {"get_syntax", regex_get_syntax, METH_OLDARGS},
{NULL, NULL} /* sentinel */
};