Skip to content

Commit

Permalink
Remove call_attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Fidget-Spinner committed Jun 17, 2022
1 parent 59139a1 commit 83809ba
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -7782,24 +7782,6 @@ slot_tp_getattro(PyObject *self, PyObject *name)
return vectorcall_method(&_Py_ID(__getattribute__), stack, 2);
}

static PyObject *
call_attribute(PyObject *self, PyObject *attr, PyObject *name)
{
PyObject *res, *descr = NULL;
descrgetfunc f = Py_TYPE(attr)->tp_descr_get;

if (f != NULL) {
descr = f(attr, self, (PyObject *)(Py_TYPE(self)));
if (descr == NULL)
return NULL;
else
attr = descr;
}
res = PyObject_CallOneArg(attr, name);
Py_XDECREF(descr);
return res;
}

static PyObject *
slot_tp_getattr_hook(PyObject *self, PyObject *name)
{
Expand Down

0 comments on commit 83809ba

Please sign in to comment.