commit | 9e29625a1b679dfcf2d5bf9957f4efb669602f74 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Thu May 01 05:25:29 2003 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Thu May 01 05:25:29 2003 +0000 |
tree | 6410f80bb25cabc76279cabd5a43e6e9757467eb | |
parent | fccac2e61aa34bd0e63ebc4eac62d8bdac3e7a21 [diff] [blame] |
Patch #729300: Disable error message if Python is not built for threads.
diff --git a/Python/pystate.c b/Python/pystate.c index 8faf6a0..b083f8c 100644 --- a/Python/pystate.c +++ b/Python/pystate.c
@@ -264,7 +264,7 @@ 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)