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 | 288fddf390b136c4f24e428ea1dd3cd102b58892 (patch) | |
tree | 659895526243cc5c5835af7c401e19939d90aa8e /Modules/gcmodule.c | |
parent | 60e9c636ed3171bb0c3b066233e66d6cbdb49fbe (diff) | |
download | cpython-288fddf390b136c4f24e428ea1dd3cd102b58892.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", |