Mercurial > cpython-lru_cache-weakref
diff Python/codecs.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 | e4aedd239e45 |
| children | 4975bcd67aa7 |
line wrap: on
line diff
--- a/Python/codecs.c Tue Dec 25 12:21:49 2012 +0200 +++ b/Python/codecs.c Tue Dec 25 13:32:35 2012 +0200 @@ -1026,7 +1026,7 @@ if (interp->codec_error_registry) { for (i = 0; i < Py_ARRAY_LENGTH(methods); ++i) { - PyObject *func = PyCFunction_New(&methods[i].def, NULL); + PyObject *func = PyCFunction_NewEx(&methods[i].def, NULL, NULL); int res; if (!func) Py_FatalError("can't initialize codec error registry");
