git » libfiu » commit b0452b6

python: Replace deprecated PyEval_CallObject call

author Alberto Bertogli
2022-08-28 15:29:41 UTC
committer Alberto Bertogli
2022-08-28 15:29:41 UTC
parent 426569ad2bb90dff9df32a2da35a7cbf3d0f23ec

python: Replace deprecated PyEval_CallObject call

This patch removes the use of the deprecated PyEval_CallObject(),
replacing it with its replacement, PyObject_CallObject().

bindings/python/fiu_ll.c +1 -1

diff --git a/bindings/python/fiu_ll.c b/bindings/python/fiu_ll.c
index 48a20e8..52c9cd3 100644
--- a/bindings/python/fiu_ll.c
+++ b/bindings/python/fiu_ll.c
@@ -114,7 +114,7 @@ static int external_callback(const char *name, int *failnum, void **failinfo,
 		return 0;
 	}
 
-	cbrv = PyEval_CallObject(*failinfo, args);
+	cbrv = PyObject_CallObject(*failinfo, args);
 	Py_DECREF(args);
 
 	if (cbrv == NULL) {