@@ -4641,10 +4641,10 @@ slot_tp_getattr_hook(PyObject *self, PyObject *name)
46414641 (void * )PyObject_GenericGetAttr ))
46424642 res = PyObject_GenericGetAttr (self , name );
46434643 else
4644- res = PyObject_CallFunction (getattribute , "OO" , self , name );
4644+ res = PyObject_CallFunctionObjArgs (getattribute , self , name , NULL );
46454645 if (res == NULL && PyErr_ExceptionMatches (PyExc_AttributeError )) {
46464646 PyErr_Clear ();
4647- res = PyObject_CallFunction (getattr , "OO" , self , name );
4647+ res = PyObject_CallFunctionObjArgs (getattr , self , name , NULL );
46484648 }
46494649 return res ;
46504650}
@@ -4781,7 +4781,7 @@ slot_tp_descr_get(PyObject *self, PyObject *obj, PyObject *type)
47814781 obj = Py_None ;
47824782 if (type == NULL )
47834783 type = Py_None ;
4784- return PyObject_CallFunction (get , "OOO" , self , obj , type );
4784+ return PyObject_CallFunctionObjArgs (get , self , obj , type , NULL );
47854785}
47864786
47874787static int
@@ -5728,8 +5728,8 @@ super_descr_get(PyObject *self, PyObject *obj, PyObject *type)
57285728 if (su -> ob_type != & PySuper_Type )
57295729 /* If su is an instance of a (strict) subclass of super,
57305730 call its type */
5731- return PyObject_CallFunction ((PyObject * )su -> ob_type ,
5732- "OO" , su -> type , obj );
5731+ return PyObject_CallFunctionObjArgs ((PyObject * )su -> ob_type ,
5732+ su -> type , obj , NULL );
57335733 else {
57345734 /* Inline the common case */
57355735 PyTypeObject * obj_type = supercheck (su -> type , obj );
0 commit comments