summaryrefslogtreecommitdiffstats
path: root/Objects/descrobject.c
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-25 11:32:35 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-25 11:32:35 (GMT)
commit3ba3a3ee56c142e93d6bbe20ff6bf939212a30f0 (patch)
tree28facf56626869888a4ca3ff03b91c9006017bc3 /Objects/descrobject.c
parent914ab8420e069499ad8a2d9b3f1ad584bd26a813 (diff)
downloadcpython-3ba3a3ee56c142e93d6bbe20ff6bf939212a30f0.zip
cpython-3ba3a3ee56c142e93d6bbe20ff6bf939212a30f0.tar.gz
cpython-3ba3a3ee56c142e93d6bbe20ff6bf939212a30f0.tar.bz2
Issue #15422: get rid of PyCFunction_New macro
Diffstat (limited to 'Objects/descrobject.c')
-rw-r--r--Objects/descrobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index abcc002..3cf00d5 100644
--- a/Objects/descrobject.c
+++ b/Objects/descrobject.c
@@ -115,7 +115,7 @@ classmethod_get(PyMethodDescrObject *descr, PyObject *obj, PyObject *type)
((PyTypeObject *)type)->tp_name);
return NULL;
}
- return PyCFunction_New(descr->d_method, type);
+ return PyCFunction_NewEx(descr->d_method, type, NULL);
}
static PyObject *
@@ -125,7 +125,7 @@ method_get(PyMethodDescrObject *descr, PyObject *obj, PyObject *type)
if (descr_check((PyDescrObject *)descr, obj, &res))
return res;
- return PyCFunction_New(descr->d_method, obj);
+ return PyCFunction_NewEx(descr->d_method, obj, NULL);
}
static PyObject *
@@ -239,7 +239,7 @@ methoddescr_call(PyMethodDescrObject *descr, PyObject *args, PyObject *kwds)
return NULL;
}
- func = PyCFunction_New(descr->d_method, self);
+ func = PyCFunction_NewEx(descr->d_method, self, NULL);
if (func == NULL)
return NULL;
args = PyTuple_GetSlice(args, 1, argc);
@@ -292,7 +292,7 @@ classmethoddescr_call(PyMethodDescrObject *descr, PyObject *args,
return NULL;
}
- func = PyCFunction_New(descr->d_method, self);
+ func = PyCFunction_NewEx(descr->d_method, self, NULL);
if (func == NULL)
return NULL;
args = PyTuple_GetSlice(args, 1, argc);