mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 10:56:11 +00:00
python: disable deprecated API for newer versions (#3210)
This commit is contained in:
parent
de0e55d684
commit
08d5c7aed7
@ -77,7 +77,9 @@ void PythonManager::initialize()
|
||||
#endif
|
||||
Py_Initialize();
|
||||
// This function is deprecated does nothing starting from Python 3.9
|
||||
#if (PY_MAJOR_VERSION <= 3) && (PY_MICRO_VERSION < 9)
|
||||
PyEval_InitThreads();
|
||||
#endif
|
||||
pyThreadStateCounter = 1; // we have the thread now => 1
|
||||
|
||||
RegQtResImporter();
|
||||
|
Loading…
Reference in New Issue
Block a user