mirror of https://github.com/python/cpython
Apply SF patch #424554: check for PYTHONDUMPREFS to be set instead of
asking to print the references.
This commit is contained in:
parent
6d40bf24dc
commit
92e2d5c7ae
|
@ -230,11 +230,7 @@ Py_Finalize(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef Py_TRACE_REFS
|
#ifdef Py_TRACE_REFS
|
||||||
if (
|
if (Py_GETENV("PYTHONDUMPREFS")) {
|
||||||
#ifdef MS_WINDOWS /* Only ask on Windows if env var set */
|
|
||||||
Py_GETENV("PYTHONDUMPREFS") &&
|
|
||||||
#endif /* MS_WINDOWS */
|
|
||||||
_Py_AskYesNo("Print left references?")) {
|
|
||||||
_Py_PrintReferences(stderr);
|
_Py_PrintReferences(stderr);
|
||||||
}
|
}
|
||||||
#endif /* Py_TRACE_REFS */
|
#endif /* Py_TRACE_REFS */
|
||||||
|
|
Loading…
Reference in New Issue