diff options
-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 |