diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-05-01 05:25:29 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-05-01 05:25:29 +0000 |
commit | 6e2eab3503065955537bb6f93852e67d3cee8c46 (patch) | |
tree | cb1e7eb28462dd542423e859ee5cffaebc192f42 /Python/pystate.c | |
parent | 6e3f76845a2e246bfa1610aac8c718de32d66d9d (diff) | |
download | cpython-6e2eab3503065955537bb6f93852e67d3cee8c46.tar.gz |
Patch #729300: Disable error message if Python is not built for threads.
Diffstat (limited to 'Python/pystate.c')
-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 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) |