From: Guido van Rossum Date: Thu, 9 Aug 2001 16:37:16 +0000 (+0000) Subject: Apply SF patch #424554: check for PYTHONDUMPREFS to be set instead of X-Git-Tag: v2.2a3~711 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92e2d5c7ae92a0562b31c340bef25ed61f2c1853;p=python Apply SF patch #424554: check for PYTHONDUMPREFS to be set instead of asking to print the references. --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index cf2c777556..69a7b51254 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 */