From: Michael Tremer Date: Thu, 10 Jun 2021 16:53:23 +0000 (+0000) Subject: _pakfire: Replace deprecated PyEval_* call with PyObject_* X-Git-Tag: 0.9.28~1282 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57c1dbb452c7cc5e5780c0b1fa3971c3119e34a5;p=pakfire.git _pakfire: Replace deprecated PyEval_* call with PyObject_* Signed-off-by: Michael Tremer --- diff --git a/src/_pakfire/pakfire.c b/src/_pakfire/pakfire.c index 1325f9816..843b9dfbe 100644 --- a/src/_pakfire/pakfire.c +++ b/src/_pakfire/pakfire.c @@ -364,7 +364,7 @@ static int __Pakfire_execute_logging_callback(Pakfire pakfire, void* data, if (!args) return 1; - PyObject* result = PyEval_CallObject(Pakfire_execute_logging_callback, args); + PyObject* result = PyObject_CallObject(Pakfire_execute_logging_callback, args); if (result && PyLong_Check(result)) { r = PyLong_AsLong(result); }