aboutsummaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-05-01 05:25:29 +0000
committerMartin v. Löwis <martin@v.loewis.de>2003-05-01 05:25:29 +0000
commit9e29625a1b679dfcf2d5bf9957f4efb669602f74 (patch)
tree6410f80bb25cabc76279cabd5a43e6e9757467eb /Python
parentPatch #725942: Always rename emulation functions. (diff)
downloadcpython-9e29625a1b679dfcf2d5bf9957f4efb669602f74.tar.gz
cpython-9e29625a1b679dfcf2d5bf9957f4efb669602f74.tar.bz2
cpython-9e29625a1b679dfcf2d5bf9957f4efb669602f74.zip
Patch #729300: Disable error message if Python is not built for threads.
Diffstat (limited to 'Python')
-rw-r--r--Python/pystate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 8faf6a09687..b083f8cb944 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)