From 9e29625a1b679dfcf2d5bf9957f4efb669602f74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 1 May 2003 05:25:29 +0000 Subject: [PATCH] Patch #729300: Disable error message if Python is not built for threads. --- Python/pystate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/pystate.c b/Python/pystate.c index 8faf6a0968..b083f8cb94 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -264,7 +264,7 @@ PyThreadState_Swap(PyThreadState *new) to be used for a thread. Check this the best we can in debug builds. */ -#if defined(Py_DEBUG) +#if defined(Py_DEBUG) && defined(WITH_THREAD) if (new) { PyThreadState *check = PyGILState_GetThisThreadState(); if (check && check != new) -- 2.50.1