OpenIPMI/OpenIPMI-py313compat.patch
Miro Hrončok dccfce06e6 Update the Python 3.13 compatibility patch
- the ctypes.h changes in not necessary any more
   (still valuable upstream)
 - the PyEval_InitThreads() function was removed and does nothing since 3.7
   (upstream might need a more complex patch to support Python 3.6 etc.)

Fixes https://bugzilla.redhat.com/2245793
2024-12-03 14:03:16 +00:00

13 lines
403 B
Diff

diff --git a/swig/python/OpenIPMI_lang.i b/swig/python/OpenIPMI_lang.i
index 67221fd..d150d81 100644
--- a/swig/python/OpenIPMI_lang.i
+++ b/swig/python/OpenIPMI_lang.i
@@ -541,7 +541,7 @@ static void OI_put_py_state(int current)
#else
static void init_lang(void)
{
- PyEval_InitThreads();
+ /* nothing */
}
#define OI_PY_STATE PyGILState_STATE
#define OI_PY_STATE_GET() PyGILState_Ensure()