diff Python/pystate.c @ 6549:a8e3b2e9f5d2 legacy-trunk

The warning about thread still having a frame now only happens in verbose mode.
author Guido van Rossum <guido@python.org>
date Mon, 03 Nov 1997 22:08:36 +0000
parents cc2c84769636
children 4ceee1ef99b0
line wrap: on
line diff
--- a/Python/pystate.c	Mon Nov 03 22:04:46 1997 +0000
+++ b/Python/pystate.c	Mon Nov 03 22:08:36 1997 +0000
@@ -149,7 +149,7 @@
 PyThreadState_Clear(tstate)
 	PyThreadState *tstate;
 {
-	if (tstate->frame != NULL)
+	if (Py_VerboseFlag && tstate->frame != NULL)
 		fprintf(stderr,
 		  "PyThreadState_Clear: warning: thread still has a frame\n");