diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-05-01 05:25:29 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-05-01 05:25:29 (GMT) |
commit | 9e29625a1b679dfcf2d5bf9957f4efb669602f74 (patch) | |
tree | 6410f80bb25cabc76279cabd5a43e6e9757467eb /Python | |
parent | fccac2e61aa34bd0e63ebc4eac62d8bdac3e7a21 (diff) | |
download | cpython-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')
-rw-r--r-- | Python/pystate.c | 2 |
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) |