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/regexmodule.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/regexmodule.c')
-rw-r--r-- | Modules/regexmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c index 7a289d5..afc7722 100644 --- a/Modules/regexmodule.c +++ b/Modules/regexmodule.c @@ -121,7 +121,7 @@ regobj_match(re, args) if (!PyArg_ParseTuple(args, "O|i", &argstring, &offset)) return NULL; - if (!PyArg_Parse(argstring, "s#", &buffer, &size)) + if (!PyArg_Parse(argstring, "t#", &buffer, &size)) return NULL; if (offset < 0 || offset > size) { @@ -160,7 +160,7 @@ regobj_search(re, args) if (!PyArg_ParseTuple(args, "O|i", &argstring, &offset)) return NULL; - if (!PyArg_Parse(argstring, "s#", &buffer, &size)) + if (!PyArg_Parse(argstring, "t#", &buffer, &size)) return NULL; if (offset < 0 || offset > size) { @@ -410,7 +410,7 @@ newregexobject(pattern, translate, givenpat, groupindex) char *pat; int size; - if (!PyArg_Parse(pattern, "s#", &pat, &size)) + if (!PyArg_Parse(pattern, "t#", &pat, &size)) return NULL; if (translate != NULL && PyString_Size(translate) != 256) { |