mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-23 21:35:28 +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
|
#endif
|
||||||
Py_Initialize();
|
Py_Initialize();
|
||||||
// This function is deprecated does nothing starting from Python 3.9
|
// This function is deprecated does nothing starting from Python 3.9
|
||||||
|
#if (PY_MAJOR_VERSION <= 3) && (PY_MICRO_VERSION < 9)
|
||||||
PyEval_InitThreads();
|
PyEval_InitThreads();
|
||||||
|
#endif
|
||||||
pyThreadStateCounter = 1; // we have the thread now => 1
|
pyThreadStateCounter = 1; // we have the thread now => 1
|
||||||
|
|
||||||
RegQtResImporter();
|
RegQtResImporter();
|
||||||
|
Loading…
Reference in New Issue
Block a user