Kaydet (Commit) 9e29625a authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Patch #729300: Disable error message if Python is not built for threads.

üst fccac2e6
...@@ -264,7 +264,7 @@ PyThreadState_Swap(PyThreadState *new) ...@@ -264,7 +264,7 @@ PyThreadState_Swap(PyThreadState *new)
to be used for a thread. Check this the best we can in debug to be used for a thread. Check this the best we can in debug
builds. builds.
*/ */
#if defined(Py_DEBUG) #if defined(Py_DEBUG) && defined(WITH_THREAD)
if (new) { if (new) {
PyThreadState *check = PyGILState_GetThisThreadState(); PyThreadState *check = PyGILState_GetThisThreadState();
if (check && check != new) if (check && check != new)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment