parent
7fbac45287
commit
ea5e5990c9
|
@ -1056,7 +1056,6 @@ pattern_subx(PatternObject* self, PyObject* ptemplate, PyObject* string,
|
||||||
PyObject* joiner;
|
PyObject* joiner;
|
||||||
PyObject* item;
|
PyObject* item;
|
||||||
PyObject* filter;
|
PyObject* filter;
|
||||||
PyObject* args;
|
|
||||||
PyObject* match;
|
PyObject* match;
|
||||||
void* ptr;
|
void* ptr;
|
||||||
Py_ssize_t status;
|
Py_ssize_t status;
|
||||||
|
@ -1158,13 +1157,7 @@ pattern_subx(PatternObject* self, PyObject* ptemplate, PyObject* string,
|
||||||
match = pattern_new_match(self, &state, 1);
|
match = pattern_new_match(self, &state, 1);
|
||||||
if (!match)
|
if (!match)
|
||||||
goto error;
|
goto error;
|
||||||
args = PyTuple_Pack(1, match);
|
item = _PyObject_FastCall(filter, &match, 1, NULL);
|
||||||
if (!args) {
|
|
||||||
Py_DECREF(match);
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
item = PyObject_CallObject(filter, args);
|
|
||||||
Py_DECREF(args);
|
|
||||||
Py_DECREF(match);
|
Py_DECREF(match);
|
||||||
if (!item)
|
if (!item)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
Loading…
Reference in New Issue