diff options
author | Guido van Rossum <guido@python.org> | 2000-02-29 13:59:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-02-29 13:59:29 (GMT) |
commit | 43713e5a2899930a8698e244b0d0fef59a676d17 (patch) | |
tree | 3d9740aff47f70cea403a2c924a37b468d1eded6 /Modules/pcremodule.c | |
parent | a9b2b4be26df7c3da8a20d1a5f4d2b796e455b4b (diff) | |
download | cpython-43713e5a2899930a8698e244b0d0fef59a676d17.zip cpython-43713e5a2899930a8698e244b0d0fef59a676d17.tar.gz cpython-43713e5a2899930a8698e244b0d0fef59a676d17.tar.bz2 |
Massive patch by Skip Montanaro to add ":name" to as many
PyArg_ParseTuple() format string arguments as possible.
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 6f6b910..f44726e 100644 --- a/Modules/pcremodule.c +++ b/Modules/pcremodule.c @@ -109,7 +109,7 @@ PyPcre_exec(self, args) int offsets[100*2]; PyObject *list; - if (!PyArg_ParseTuple(args, "t#|iiii", &string, &stringlen, &pos, &endpos, &options)) + if (!PyArg_ParseTuple(args, "t#|iiii:match", &string, &stringlen, &pos, &endpos, &options)) return NULL; if (endpos == -1) {endpos = stringlen;} count = pcre_exec(self->regex, self->regex_extra, @@ -193,7 +193,7 @@ PyPcre_compile(self, args) const char *error; int options, erroroffset; - if (!PyArg_ParseTuple(args, "siO!", &pattern, &options, + if (!PyArg_ParseTuple(args, "siO!:pcre_compile", &pattern, &options, &PyDict_Type, &dictionary)) return NULL; rv = newPcreObject(args); @@ -471,7 +471,7 @@ PyPcre_expand(self, args) unsigned char *repl; int size, total_len, i, start, pos; - if (!PyArg_ParseTuple(args, "OS", &match_obj, &repl_obj)) + if (!PyArg_ParseTuple(args, "OS:pcre_expand", &match_obj, &repl_obj)) return NULL; repl=(unsigned char *)PyString_AsString(repl_obj); |