commit | 3ba3a3ee56c142e93d6bbe20ff6bf939212a30f0 | [log] [tgz] |
---|---|---|
author | Andrew Svetlov <andrew.svetlov@gmail.com> | Tue Dec 25 13:32:35 2012 +0200 |
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | Tue Dec 25 13:32:35 2012 +0200 |
tree | 28facf56626869888a4ca3ff03b91c9006017bc3 | |
parent | 914ab8420e069499ad8a2d9b3f1ad584bd26a813 [diff] [blame] |
Issue #15422: get rid of PyCFunction_New macro
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 @@ 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;