mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
PyEval_InitThreads()
is deprecated
`Py_Initialize()` does it since 3.7, it's a noop and deprecated since 3.9. https://docs.python.org/3/c-api/init.html#c.PyEval_InitThreads Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
parent
7d885c3713
commit
76267ad5a7
@ -1607,7 +1607,9 @@ python_init_prof(void)
|
||||
#ifdef PY_IS_PYTHON3
|
||||
PyImport_AppendInittab("prof", python_api_init);
|
||||
Py_Initialize();
|
||||
#if PY_VERSION_HEX < 0x03070000
|
||||
PyEval_InitThreads();
|
||||
#endif
|
||||
#else
|
||||
Py_Initialize();
|
||||
PyEval_InitThreads();
|
||||
|
Loading…
Reference in New Issue
Block a user