diff options
author | Guido van Rossum <guido@python.org> | 1997-08-14 14:35:12 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-08-14 14:35:12 (GMT) |
commit | 0318bd6ae6f14ba04345b768e76fca3c6c1a67ab (patch) | |
tree | fd82923e66747968f0adbadc77f2ed3f41642fe5 /Modules/regexmodule.c | |
parent | 1530c879850d48c4f296d248e171ecf7c5d645f3 (diff) | |
download | cpython-0318bd6ae6f14ba04345b768e76fca3c6c1a67ab.zip cpython-0318bd6ae6f14ba04345b768e76fca3c6c1a67ab.tar.gz cpython-0318bd6ae6f14ba04345b768e76fca3c6c1a67ab.tar.bz2 |
Use _Py_re_match/search instead of re_match/search; these may become
different in a future version.
Diffstat (limited to 'Modules/regexmodule.c')
-rw-r--r-- | Modules/regexmodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c index 32360f2..8a6b695 100644 --- a/Modules/regexmodule.c +++ b/Modules/regexmodule.c @@ -130,7 +130,8 @@ regobj_match(re, args) } Py_XDECREF(re->re_lastok); re->re_lastok = NULL; - result = re_match(&re->re_patbuf, buffer, size, offset, &re->re_regs); + result = _Py_re_match(&re->re_patbuf, buffer, size, offset, + &re->re_regs); if (result < -1) { /* Serious failure of some sort; if re_match didn't set an exception, raise a generic error */ @@ -173,7 +174,7 @@ regobj_search(re, args) range = size - offset; Py_XDECREF(re->re_lastok); re->re_lastok = NULL; - result = re_search(&re->re_patbuf, buffer, size, offset, range, + result = _Py_re_search(&re->re_patbuf, buffer, size, offset, range, &re->re_regs); if (result < -1) { /* Serious failure of some sort; if re_match didn't |