Skip to content

Commit

Permalink
Remove PyEval_InitThreads() call
Browse files Browse the repository at this point in the history
Since Python 3.7, the function does nothing. Moreover, it's
deprecated since Python 3.9:
https://docs.python.org/3.12/c-api/init.html#c.PyEval_InitThreads

Since pyotherside requires Python 3.8, simply remove the call.
  • Loading branch information
vstinner committed May 23, 2024
1 parent 9a4d1a2 commit d45bf29
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/qpython_priv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,6 @@ QPythonPriv::QPythonPriv()
PyImport_AppendInittab("pyotherside", PyOtherSide_init);

Py_InitializeEx(0);
PyEval_InitThreads();

// Initialize sys.argv (https://github.com/thp/pyotherside/issues/77)
int argc = 1;
Expand Down

0 comments on commit d45bf29

Please sign in to comment.