trace-cmd library: fix compatibility with Python 3.13
PATCH 1/1 trace-cmd library: fix compatibility with Python 3.13
PyEval_CallObject was deprecated in Python 3.9 and removed from 3.13.
Signed-off-by Yaakov Selkowitz <[email protected]>
--- python/ctracecmd.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
python/ctracecmd.i +1 -1
@@ -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)) {
Signature · 1 line
2.45.2