Skip to content

Commit 14be349

Browse files
committed
python_3.13: use Py_(Is)Initialize(d) instead of (Is)PyEval_InitThreads
1 parent 60d6955 commit 14be349

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PyMI/PyMI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ static PyModuleDef mimodule = {
3434

3535
PyObject* _initmi(void)
3636
{
37-
if (!PyEval_ThreadsInitialized())
37+
if (!Py_IsInitialized())
3838
{
39-
PyEval_InitThreads();
39+
Py_Initialize();
4040
}
4141

4242
PyDateTime_IMPORT;

0 commit comments

Comments
 (0)