diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2020-10-28 09:09:47 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2020-10-28 10:40:22 +0200 |
commit | 4821d42abbf983acfab618b968501da6e0c69f37 (patch) | |
tree | 4ab5ee55ace244057be95a35d08bce0ccc9daa92 /python | |
parent | dd5c0446a3178fa6f4385284badb9d6f6c1342b3 (diff) | |
download | rpm-4821d42abbf983acfab618b968501da6e0c69f37.tar.gz |
Replace uses of deprecated PyEval_CallObject() with PyObject_Call()
Python 3.9 has deprecated PyEval_CallObject(), replace with a more
modern and documented interface (https://bugs.python.org/issue29548).
Diffstat (limited to 'python')
-rw-r--r-- | python/rpmts-py.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/rpmts-py.c b/python/rpmts-py.c index 2a56e45e1..27caa0388 100644 --- a/python/rpmts-py.c +++ b/python/rpmts-py.c @@ -245,7 +245,7 @@ rpmts_SolveCallback(rpmts ts, rpmds ds, const void * data) args = Py_BuildValue("(OiNNi)", cbInfo->tso, rpmdsTagN(ds), utf8FromString(rpmdsN(ds)), utf8FromString(rpmdsEVR(ds)), rpmdsFlags(ds)); - result = PyEval_CallObject(cbInfo->cb, args); + result = PyObject_Call(cbInfo->cb, args, NULL); Py_DECREF(args); if (!result) { @@ -553,7 +553,7 @@ rpmtsCallback(const void * arg, const rpmCallbackType what, Py_DECREF(o); } - result = PyEval_CallObject(cbInfo->cb, args); + result = PyObject_Call(cbInfo->cb, args, NULL); Py_DECREF(args); if (!result) { |