From a5141d2d57b30e39414c8f7aa2b3b1610914b01f Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Wed, 25 Oct 2023 20:09:30 -0500 Subject: [PATCH] python 3.13 compatibility --- src/libcec/SwigHelper.h | 2 +- src/libcec/libcec.i | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcec/SwigHelper.h b/src/libcec/SwigHelper.h index 98559767..cc730242 100644 --- a/src/libcec/SwigHelper.h +++ b/src/libcec/SwigHelper.h @@ -119,7 +119,7 @@ namespace CEC if (!!m_callbacks[callback]) { /** call the callback */ - result = PyEval_CallObject(m_callbacks[callback], arglist); + result = PyObject_CallObject(m_callbacks[callback], arglist); /** unref the argument and result */ if (!!arglist) diff --git a/src/libcec/libcec.i b/src/libcec/libcec.i index 88250be0..03ccd2a4 100644 --- a/src/libcec/libcec.i +++ b/src/libcec/libcec.i @@ -141,7 +141,7 @@ namespace std { if (!!lib) { lib->InitVideoStandalone(); - PyEval_InitThreads(); + // PyEval_InitThreads(); } return lib; }