summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2021-07-28 13:10:36 (GMT)
committerGitHub <noreply@github.com>2021-07-28 13:10:36 (GMT)
commitddf8ae31a0f371eff2db14c7f7a45976b86d56ea (patch)
treee17d712dcea8dfd2aaa6c3c622a31f8880f6c5a1 /Objects
parent174fbd85f60d7877d3a4f58214a852209f8dfbea (diff)
downloadcpython-ddf8ae31a0f371eff2db14c7f7a45976b86d56ea.zip
cpython-ddf8ae31a0f371eff2db14c7f7a45976b86d56ea.tar.gz
cpython-ddf8ae31a0f371eff2db14c7f7a45976b86d56ea.tar.bz2
bpo-44657: Fix instancemethod_call to use PyInstanceMethod_GET_FUNCTION (GH-27202)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/classobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c
index fd9f875..af73be3 100644
--- a/Objects/classobject.c
+++ b/Objects/classobject.c
@@ -462,7 +462,7 @@ instancemethod_traverse(PyObject *self, visitproc visit, void *arg) {
static PyObject *
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 *