mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +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
|
@ -4145,8 +4145,8 @@ _PyType_GetSlotNames(PyTypeObject *cls)
|
|||
/* Use _slotnames function from the copyreg module to find the slots
|
||||
by this class and its bases. This function will cache the result
|
||||
in __slotnames__. */
|
||||
slotnames = _PyObject_CallMethodIdObjArgs(copyreg, &PyId__slotnames,
|
||||
cls, NULL);
|
||||
slotnames = _PyObject_CallMethodIdOneArg(copyreg, &PyId__slotnames,
|
||||
(PyObject *)cls);
|
||||
Py_DECREF(copyreg);
|
||||
if (slotnames == NULL)
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue