summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2000-08-25 21:00:46 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2000-08-25 21:00:46 (GMT)
commitdc3d606bd931bc7ffa780bd397ca184f69bb3838 (patch)
tree8ce121d978d949bd055b9572a2a5cba491d78271 /Python/pythonrun.c
parentfa488ec2a0c60dc6a90d1be7b58d0a277db97b41 (diff)
downloadcpython-dc3d606bd931bc7ffa780bd397ca184f69bb3838.zip
cpython-dc3d606bd931bc7ffa780bd397ca184f69bb3838.tar.gz
cpython-dc3d606bd931bc7ffa780bd397ca184f69bb3838.tar.bz2
Fix to [ Bug #111165 ] doc-string removal masked by PYTHONOPTIMIZE
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index a99c1b4..8d571c3 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -108,11 +108,11 @@ Py_Initialize(void)
initialized = 1;
if ((p = getenv("PYTHONDEBUG")) && *p != '\0')
- Py_DebugFlag = 1;
+ Py_DebugFlag = Py_DebugFlag ? Py_DebugFlag : 1;
if ((p = getenv("PYTHONVERBOSE")) && *p != '\0')
- Py_VerboseFlag = 1;
+ Py_VerboseFlag = Py_VerboseFlag ? Py_VerboseFlag : 1;
if ((p = getenv("PYTHONOPTIMIZE")) && *p != '\0')
- Py_OptimizeFlag = 1;
+ Py_OptimizeFlag = Py_OptimizeFlag ? Py_OptimizeFlag : 1;
interp = PyInterpreterState_New();
if (interp == NULL)