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

This commit is contained in:
Martin v. Löwis 2003-05-01 05:25:29 +00:00
parent fccac2e61a
commit 9e29625a1b

View file

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