Issue #15422: get rid of PyCFunction_New macro

This commit is contained in:
Andrew Svetlov 2012-12-25 13:32:35 +02:00
parent 914ab8420e
commit 3ba3a3ee56
9 changed files with 20 additions and 23 deletions

View file

@ -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;