Mercurial > cpython-lru_cache-weakref
diff Modules/_threadmodule.c @ 81031:3a86a3f1d89a
Issue #15422: get rid of PyCFunction_New macro
| author | Andrew Svetlov <andrew.svetlov@gmail.com> |
|---|---|
| date | Tue, 25 Dec 2012 13:32:35 +0200 |
| parents | dfc7fd24983a |
| children | a80abb179ba1 |
line wrap: on
line diff
--- a/Modules/_threadmodule.c Tue Dec 25 12:21:49 2012 +0200 +++ b/Modules/_threadmodule.c Tue Dec 25 13:32:35 2012 +0200 @@ -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;
