comparison Python/pythonrun.c @ 19099:de5d7a9428ef legacy-trunk

Apply SF patch #424554: check for PYTHONDUMPREFS to be set instead of asking to print the references.
author Guido van Rossum <guido@python.org>
date Thu, 09 Aug 2001 16:37:16 +0000
parents 4df72ea78ae8
children 97a3d3d7029f
comparison
equal deleted inserted replaced
19098:c95f0a12b51a 19099:de5d7a9428ef
228 #ifdef Py_REF_DEBUG 228 #ifdef Py_REF_DEBUG
229 fprintf(stderr, "[%ld refs]\n", _Py_RefTotal); 229 fprintf(stderr, "[%ld refs]\n", _Py_RefTotal);
230 #endif 230 #endif
231 231
232 #ifdef Py_TRACE_REFS 232 #ifdef Py_TRACE_REFS
233 if ( 233 if (Py_GETENV("PYTHONDUMPREFS")) {
234 #ifdef MS_WINDOWS /* Only ask on Windows if env var set */
235 Py_GETENV("PYTHONDUMPREFS") &&
236 #endif /* MS_WINDOWS */
237 _Py_AskYesNo("Print left references?")) {
238 _Py_PrintReferences(stderr); 234 _Py_PrintReferences(stderr);
239 } 235 }
240 #endif /* Py_TRACE_REFS */ 236 #endif /* Py_TRACE_REFS */
241 237
242 /* Now we decref the exception classes. After this point nothing 238 /* Now we decref the exception classes. After this point nothing