mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #15422: get rid of PyCFunction_New macro
This commit is contained in:
parent
914ab8420e
commit
3ba3a3ee56
9 changed files with 20 additions and 23 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue