mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
bpo-37547: add _PyObject_CallMethodOneArg (GH-14685)
This commit is contained in:
parent
2a3d4d9c53
commit
59ad110d7a
23 changed files with 104 additions and 93 deletions
|
|
@ -2679,7 +2679,7 @@ treebuilder_add_subelement(PyObject *element, PyObject *child)
|
|||
}
|
||||
else {
|
||||
PyObject *res;
|
||||
res = _PyObject_CallMethodIdObjArgs(element, &PyId_append, child, NULL);
|
||||
res = _PyObject_CallMethodIdOneArg(element, &PyId_append, child);
|
||||
if (res == NULL)
|
||||
return -1;
|
||||
Py_DECREF(res);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue