diff options
author | Guido van Rossum <guido@python.org> | 1998-10-08 02:25:24 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-08 02:25:24 (GMT) |
commit | 7e48898d86aaddac7f26b7a859a7b8996dfdbea9 (patch) | |
tree | ab895a2a39069e9c005ee5e887d2292d0e7ab94e /Modules/pcremodule.c | |
parent | b317f8aa0d1387f30c72df47bf18cb7517f45f2a (diff) | |
download | cpython-7e48898d86aaddac7f26b7a859a7b8996dfdbea9.zip cpython-7e48898d86aaddac7f26b7a859a7b8996dfdbea9.tar.gz cpython-7e48898d86aaddac7f26b7a859a7b8996dfdbea9.tar.bz2 |
Use the t# format where appropriate. Greg Stein.
Diffstat (limited to 'Modules/pcremodule.c')
-rw-r--r-- | Modules/pcremodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/pcremodule.c b/Modules/pcremodule.c index f8bde04..9819fdd 100644 --- a/Modules/pcremodule.c +++ b/Modules/pcremodule.c @@ -111,11 +111,11 @@ PyPcre_exec(self, args) int offsets[100*2]; PyObject *list; - if (!PyArg_ParseTuple(args, "s#|iiii", &string, &stringlen, &pos, &endpos, &options)) + if (!PyArg_ParseTuple(args, "t#|iiii", &string, &stringlen, &pos, &endpos, &options)) return NULL; if (endpos == -1) {endpos = stringlen;} count = pcre_exec(self->regex, self->regex_extra, - (char *)string, endpos, pos, options, + string, endpos, pos, options, offsets, sizeof(offsets)/sizeof(int) ); /* If an error occurred during the match, and an exception was raised, just return NULL and leave the exception alone. The most likely |