Message ID | 20240623171109.691772-1-yselkowi@redhat.com (mailing list archive) |
---|---|
State | Accepted |
Commit | ecc1cfe9dd3459e71c9113f96bc9ea55a06a47d1 |
Headers | show |
Series | trace-cmd library: fix compatibility with Python 3.13 | expand |
diff --git a/python/ctracecmd.i b/python/ctracecmd.i index 6d0179e3..8757cbe4 100644 --- a/python/ctracecmd.i +++ b/python/ctracecmd.i @@ -214,7 +214,7 @@ static int python_callback(struct trace_seq *s, SWIG_NewPointerObj(SWIG_as_voidptr(event), SWIGTYPE_p_tep_event, 0)); - result = PyEval_CallObject(context, arglist); + result = PyObject_CallObject(context, arglist); Py_XDECREF(arglist); if (result && result != Py_None) { if (!PyInt_Check(result)) {
PyEval_CallObject was deprecated in Python 3.9 and removed from 3.13. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com> --- python/ctracecmd.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)