Skip to content

Commit be3c037

Browse files
committed
Stop calling PyEval_InitThreads
PyEval_InitThreads is depricated, since 3.7 it is not necessary to call it. On python 3.12 it is not present anymore, which cases build to fail. Ref: https://docs.python.org/3/c-api/init.html#c.PyEval_InitThreads
1 parent dccfe90 commit be3c037

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cassandra/io/libevwrapper.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,9 +667,6 @@ initlibevwrapper(void)
667667
if (PyModule_AddObject(module, "Timer", (PyObject *)&libevwrapper_TimerType) == -1)
668668
INITERROR;
669669

670-
if (!PyEval_ThreadsInitialized()) {
671-
PyEval_InitThreads();
672-
}
673670

674671
#if PY_MAJOR_VERSION >= 3
675672
return module;

0 commit comments

Comments
 (0)