Revert "Python 3.11.10 test"

This reverts commit ee921e4f1284fe3d984d9422b24a1c56c6916c21.
This commit is contained in:
Lord-Grey 2024-11-20 19:28:53 +01:00
parent ee921e4f12
commit 07bf243a44

View File

@ -88,12 +88,11 @@ void PythonProgram::execute(const QByteArray& python_code)
if (!main_module) if (!main_module)
{ {
// Restore the previous thread state // Restore the previous thread state
// #if (PY_VERSION_HEX < 0x030C0000) #if (PY_VERSION_HEX < 0x030C0000)
// PyThreadState_Swap(mainThreadState); PyThreadState_Swap(mainThreadState);
// #else #else
PyThreadState_Swap(prev_thread_state); PyThreadState_Swap(prev_thread_state);
qDebug() << "PyThreadState_Swap(prev_thread_state);"; #endif
// #endif
return; return;
} }
@ -176,11 +175,10 @@ void PythonProgram::execute(const QByteArray& python_code)
Py_DECREF(main_module); Py_DECREF(main_module);
// Restore the previous thread state // Restore the previous thread state
// #if (PY_VERSION_HEX < 0x030C0000) #if (PY_VERSION_HEX < 0x030C0000)
// PyThreadState_Swap(mainThreadState); PyThreadState_Swap(mainThreadState);
// #else #else
PyThreadState_Swap(prev_thread_state); PyThreadState_Swap(prev_thread_state);
qDebug() << "PyThreadState_Swap(prev_thread_state);"; #endif
// #endif
} }