diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-14 09:48:39 +0000 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-14 09:48:39 +0000 |
commit | 2ed94eb520fa1ffe3a41e7a06849801a210f2978 (patch) | |
tree | 20007be0f93c11817bdca43028c3225f5808dccc /Modules/gcmodule.c | |
parent | 0055c421fed0d2b8e8760ba69fd7138ca77475c2 (diff) | |
download | cpython-git-2ed94eb520fa1ffe3a41e7a06849801a210f2978.tar.gz |
Do not print additional shutdown message when gc.DEBUG_SAVEALL is set
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r-- | Modules/gcmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 73843272e1..a95bec773a 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -1366,7 +1366,8 @@ PyGC_Collect(void) void _PyGC_Fini(void) { - if (garbage != NULL && PyList_GET_SIZE(garbage) > 0) { + if (!(debug & DEBUG_SAVEALL) + && garbage != NULL && PyList_GET_SIZE(garbage) > 0) { PySys_WriteStderr( "gc: " "%" PY_FORMAT_SIZE_T "d uncollectable objects at shutdown:\n", |