diff Python/pystate.c @ 28914:33475661823d legacy-trunk

Patch #729300: Disable error message if Python is not built for threads.
author Martin v. Löwis <martin@v.loewis.de>
date Thu, 01 May 2003 05:25:29 +0000
parents a4154dd5939a
children fa97293533a9
line wrap: on
line diff
--- a/Python/pystate.c	Thu May 01 05:20:46 2003 +0000
+++ b/Python/pystate.c	Thu May 01 05:25:29 2003 +0000
@@ -264,7 +264,7 @@
 	   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)