summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-09 16:37:16 (GMT)
committerGuido van Rossum <guido@python.org>2001-08-09 16:37:16 (GMT)
commit92e2d5c7ae92a0562b31c340bef25ed61f2c1853 (patch)
tree83a20b39be9c8d84f5390a1b029d117f4ef560f5 /Python
parent6d40bf24dc3b1bcb46f05731242ecee570232a20 (diff)
downloadcpython-92e2d5c7ae92a0562b31c340bef25ed61f2c1853.zip
cpython-92e2d5c7ae92a0562b31c340bef25ed61f2c1853.tar.gz
cpython-92e2d5c7ae92a0562b31c340bef25ed61f2c1853.tar.bz2
Apply SF patch #424554: check for PYTHONDUMPREFS to be set instead of
asking to print the references.
Diffstat (limited to 'Python')
-rw-r--r--Python/pythonrun.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index cf2c777..69a7b51 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -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 */