summaryrefslogtreecommitdiffstats
path: root/Modules/_threadmodule.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 /Modules/_threadmodule.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 'Modules/_threadmodule.c')
-rw-r--r--Modules/_threadmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c
index 63efdc3..89ef7ba 100644
--- a/Modules/_threadmodule.c
+++ b/Modules/_threadmodule.c
@@ -741,7 +741,7 @@ local_new(PyTypeObject *type, PyObject *args, PyObject *kw)
wr = PyWeakref_NewRef((PyObject *) self, NULL);
if (wr == NULL)
goto err;
- self->wr_callback = PyCFunction_New(&wr_callback_def, wr);
+ self->wr_callback = PyCFunction_NewEx(&wr_callback_def, wr, NULL);
Py_DECREF(wr);
if (self->wr_callback == NULL)
goto err;