mirror of
https://github.com/python/cpython.git
synced 2025-09-19 15:10:58 +00:00
bpo-44657: Fix instancemethod_call to use PyInstanceMethod_GET_FUNCTION (GH-27202)
This commit is contained in:
parent
174fbd85f6
commit
ddf8ae31a0
1 changed files with 1 additions and 1 deletions
|
@ -462,7 +462,7 @@ instancemethod_traverse(PyObject *self, visitproc visit, void *arg) {
|
||||||
static PyObject *
|
static PyObject *
|
||||||
instancemethod_call(PyObject *self, PyObject *arg, PyObject *kw)
|
instancemethod_call(PyObject *self, PyObject *arg, PyObject *kw)
|
||||||
{
|
{
|
||||||
return PyObject_Call(PyMethod_GET_FUNCTION(self), arg, kw);
|
return PyObject_Call(PyInstanceMethod_GET_FUNCTION(self), arg, kw);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue