summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-07-11 15:57:32 (GMT)
committerInada Naoki <songofacandy@gmail.com>2019-07-11 15:57:32 (GMT)
commit1dbd084f1f68d7293718b663df675cfbd0c65712 (patch)
tree134dd51d1364168e6f55f6dae348213dbdd136d7 /Python
parent9b5ce62cac27fec9dea473865d79c2c654312957 (diff)
downloadcpython-1dbd084f1f68d7293718b663df675cfbd0c65712.zip
cpython-1dbd084f1f68d7293718b663df675cfbd0c65712.tar.gz
cpython-1dbd084f1f68d7293718b663df675cfbd0c65712.tar.bz2
bpo-29548: no longer use PyEval_Call* functions (GH-14683)
Diffstat (limited to 'Python')
-rw-r--r--Python/codecs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/codecs.c b/Python/codecs.c
index 75b60ec..4f38b33 100644
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -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;