]> granicus.if.org Git - python/commitdiff
Apply SF patch #424554: check for PYTHONDUMPREFS to be set instead of
authorGuido van Rossum <guido@python.org>
Thu, 9 Aug 2001 16:37:16 +0000 (16:37 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 9 Aug 2001 16:37:16 +0000 (16:37 +0000)
asking to print the references.

Python/pythonrun.c

index cf2c777556b0c2113eec1ae1e347db3c3bb1ab38..69a7b512540ab6676207f3f20d940c071e99b81a 100644 (file)
@@ -230,11 +230,7 @@ Py_Finalize(void)
 #endif
 
 #ifdef Py_TRACE_REFS
-       if (
-#ifdef MS_WINDOWS /* Only ask on Windows if env var set */
-           Py_GETENV("PYTHONDUMPREFS") &&
-#endif /* MS_WINDOWS */
-           _Py_AskYesNo("Print left references?")) {
+       if (Py_GETENV("PYTHONDUMPREFS")) {
                _Py_PrintReferences(stderr);
        }
 #endif /* Py_TRACE_REFS */