* [PATCH] trace-cmd library: fix compatibility with Python 3.13
@ 2024-06-23 17:10 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2024-06-23 17:10 UTC (permalink / raw)
To: linux-trace-devel
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(-)
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)) {
--
2.45.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-23 17:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-23 17:10 [PATCH] trace-cmd library: fix compatibility with Python 3.13 Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).