mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
The warning about thread still having a frame now only happens in
verbose mode.
This commit is contained in:
parent
8607ae2e57
commit
22348dc0e1
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue