diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-25 13:32:35 +0200 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-25 13:32:35 +0200 |
commit | 3ba3a3ee56c142e93d6bbe20ff6bf939212a30f0 (patch) | |
tree | 28facf56626869888a4ca3ff03b91c9006017bc3 /Python | |
parent | 914ab8420e069499ad8a2d9b3f1ad584bd26a813 (diff) | |
download | cpython-git-3ba3a3ee56c142e93d6bbe20ff6bf939212a30f0.tar.gz |
Issue #15422: get rid of PyCFunction_New macro
Diffstat (limited to 'Python')
-rw-r--r-- | Python/codecs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/codecs.c b/Python/codecs.c index 37ae41b1ca..8d9ce6f496 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -1026,7 +1026,7 @@ static int _PyCodecRegistry_Init(void) 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"); |