summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-05-01 05:25:29 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-05-01 05:25:29 (GMT)
commit9e29625a1b679dfcf2d5bf9957f4efb669602f74 (patch)
tree6410f80bb25cabc76279cabd5a43e6e9757467eb /Python/pystate.c
parentfccac2e61aa34bd0e63ebc4eac62d8bdac3e7a21 (diff)
downloadcpython-9e29625a1b679dfcf2d5bf9957f4efb669602f74.zip
cpython-9e29625a1b679dfcf2d5bf9957f4efb669602f74.tar.gz
cpython-9e29625a1b679dfcf2d5bf9957f4efb669602f74.tar.bz2
Patch #729300: Disable error message if Python is not built for threads.
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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)