[Python-checkins] CVS: python/dist/src/Python pythonrun.c,2.107,2.108
M.-A. Lemburg
python-dev@python.org
Fri, 25 Aug 2000 14:00:48 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv27965
Modified Files:
pythonrun.c
Log Message:
Fix to [ Bug #111165 ] doc-string removal masked by PYTHONOPTIMIZE
Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.107
retrieving revision 2.108
diff -C2 -r2.107 -r2.108
*** pythonrun.c 2000/08/15 16:13:37 2.107
--- pythonrun.c 2000/08/25 21:00:46 2.108
***************
*** 109,117 ****
if ((p = getenv("PYTHONDEBUG")) && *p != '\0')
! Py_DebugFlag = 1;
if ((p = getenv("PYTHONVERBOSE")) && *p != '\0')
! Py_VerboseFlag = 1;
if ((p = getenv("PYTHONOPTIMIZE")) && *p != '\0')
! Py_OptimizeFlag = 1;
interp = PyInterpreterState_New();
--- 109,117 ----
if ((p = getenv("PYTHONDEBUG")) && *p != '\0')
! Py_DebugFlag = Py_DebugFlag ? Py_DebugFlag : 1;
if ((p = getenv("PYTHONVERBOSE")) && *p != '\0')
! Py_VerboseFlag = Py_VerboseFlag ? Py_VerboseFlag : 1;
if ((p = getenv("PYTHONOPTIMIZE")) && *p != '\0')
! Py_OptimizeFlag = Py_OptimizeFlag ? Py_OptimizeFlag : 1;
interp = PyInterpreterState_New();