Skip to content

Commit

Permalink
Patch #729300: Disable error message if Python is not built for threads.
Browse files Browse the repository at this point in the history
  • Loading branch information
loewis committed May 1, 2003
1 parent fccac2e commit 9e29625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/pystate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9e29625

Please sign in to comment.