Commit 92e2d5c7 authored by Guido van Rossum's avatar Guido van Rossum

Apply SF patch #424554: check for PYTHONDUMPREFS to be set instead of

asking to print the references.
parent 6d40bf24
......@@ -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 */
......
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