1
1
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:
Steffen Jaeckel 2024-11-22 16:32:08 +01:00
parent 7d885c3713
commit 76267ad5a7

View File

@ -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();