bpo-29548: no longer use PyEval_Call* functions by jdemeyer · Pull Request #14683 · python/cpython
Expand Up
@@ -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; Expand Down Expand Up @@ -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; Expand Down
result = PyEval_CallObject(encoder, args); result = PyObject_Call(encoder, args, NULL); if (result == NULL) { wrap_codec_error("encoding", encoding); goto onError; Expand Down Expand Up @@ -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; Expand Down