mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-29548: no longer use PyEval_Call* functions (GH-14683)
This commit is contained in:
parent
9b5ce62cac
commit
1dbd084f1f
4 changed files with 14 additions and 6 deletions
|
@ -416,7 +416,7 @@ _PyCodec_EncodeInternal(PyObject *object,
|
|||
if (args == NULL)
|
||||
goto onError;
|
||||
|
||||
result = PyEval_CallObject(encoder, args);
|
||||
result = PyObject_Call(encoder, args, NULL);
|
||||
if (result == NULL) {
|
||||
wrap_codec_error("encoding", encoding);
|
||||
goto onError;
|
||||
|
@ -462,7 +462,7 @@ _PyCodec_DecodeInternal(PyObject *object,
|
|||
if (args == NULL)
|
||||
goto onError;
|
||||
|
||||
result = PyEval_CallObject(decoder,args);
|
||||
result = PyObject_Call(decoder, args, NULL);
|
||||
if (result == NULL) {
|
||||
wrap_codec_error("decoding", encoding);
|
||||
goto onError;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue