[Python-checkins] CVS: python/dist/src/Python pythonrun.c,2.141,2.142

Guido van Rossum gvanrossum@users.sourceforge.net
Thu, 09 Aug 2001 09:37:19 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv5040

Modified Files:
	pythonrun.c 
Log Message:
Apply SF patch #424554: check for PYTHONDUMPREFS to be set instead of
asking to print the references.


Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.141
retrieving revision 2.142
diff -C2 -d -r2.141 -r2.142
*** pythonrun.c	2001/08/07 17:24:28	2.141
--- pythonrun.c	2001/08/09 16:37:16	2.142
***************
*** 231,239 ****
  
  #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?")) {
  		_Py_PrintReferences(stderr);
  	}
--- 231,235 ----
  
  #ifdef Py_TRACE_REFS
! 	if (Py_GETENV("PYTHONDUMPREFS")) {
  		_Py_PrintReferences(stderr);
  	}