Use _Py_re_match/search instead of re_match/search; these may become

different in a future version.
This commit is contained in:
Guido van Rossum 1997-08-14 14:35:12 +00:00
parent 1530c87985
commit 0318bd6ae6
1 changed files with 3 additions and 2 deletions

View File

@ -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