mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03: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
|
|
@ -1699,7 +1699,7 @@ unpickle(PyObject *self, PyObject *args)
|
|||
|
||||
if (!PyArg_ParseTuple(args, "OO!", &typ, &PyTuple_Type, &state))
|
||||
return NULL;
|
||||
obj = _PyObject_CallMethodIdObjArgs(typ, &PyId___new__, typ, NULL);
|
||||
obj = _PyObject_CallMethodIdOneArg(typ, &PyId___new__, typ);
|
||||
if (obj == NULL)
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue