]> granicus.if.org Git - python/commitdiff
The warning about thread still having a frame now only happens in
authorGuido van Rossum <guido@python.org>
Mon, 3 Nov 1997 22:08:36 +0000 (22:08 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 3 Nov 1997 22:08:36 +0000 (22:08 +0000)
verbose mode.

Python/pystate.c

index bdb456b0694cff986ceb6c91e0216bd967c2e2bf..f1dc4138db7dc87664ced7c81e2bf82e9cf90d86 100644 (file)
@@ -149,7 +149,7 @@ void
 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");