Commit 20dfd857 authored by Guido van Rossum's avatar Guido van Rossum

The warning about thread still having a frame now only happens in

verbose mode.
parent 836e0420
...@@ -149,7 +149,7 @@ void ...@@ -149,7 +149,7 @@ void
PyThreadState_Clear(tstate) PyThreadState_Clear(tstate)
PyThreadState *tstate; PyThreadState *tstate;
{ {
if (tstate->frame != NULL) if (Py_VerboseFlag && tstate->frame != NULL)
fprintf(stderr, fprintf(stderr,
"PyThreadState_Clear: warning: thread still has a frame\n"); "PyThreadState_Clear: warning: thread still has a frame\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment