diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-01-17 23:15:58 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-01-17 23:15:58 (GMT) |
commit | 43b936d08c51726205123ae1af5c5f8b5d3b6fcb (patch) | |
tree | 1c3e3fd7ec72d71f92f1f0480291c5efc7f19eaf /Modules/pcremodule.c | |
parent | c0e1671c71dfcf25c8584b06a2e9584a8806a325 (diff) | |
download | cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.zip cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.gz cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.bz2 |
Patch #477750: Use METH_ constants in Modules.
Diffstat (limited to 'Modules/pcremodule.c')
-rw-r--r-- | Modules/pcremodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/pcremodule.c b/Modules/pcremodule.c index d08d4ea..6c05766 100644 --- a/Modules/pcremodule.c +++ b/Modules/pcremodule.c @@ -114,7 +114,7 @@ PyPcre_exec(PcreObject *self, PyObject *args) } static PyMethodDef Pcre_methods[] = { - {"match", (PyCFunction)PyPcre_exec, 1}, + {"match", (PyCFunction)PyPcre_exec, METH_VARARGS}, {NULL, NULL} /* sentinel */ }; @@ -582,8 +582,8 @@ PyPcre_expand(PyObject *self, PyObject *args) /* List of functions defined in the module */ static PyMethodDef pcre_methods[] = { - {"pcre_compile", PyPcre_compile, 1}, - {"pcre_expand", PyPcre_expand, 1}, + {"pcre_compile", PyPcre_compile, METH_VARARGS}, + {"pcre_expand", PyPcre_expand, METH_VARARGS}, {NULL, NULL} /* sentinel */ }; |