diff options
author | Marc-André Lemburg <mal@egenix.com> | 2000-08-25 21:00:46 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2000-08-25 21:00:46 (GMT) |
commit | dc3d606bd931bc7ffa780bd397ca184f69bb3838 (patch) | |
tree | 8ce121d978d949bd055b9572a2a5cba491d78271 /Python | |
parent | fa488ec2a0c60dc6a90d1be7b58d0a277db97b41 (diff) | |
download | cpython-dc3d606bd931bc7ffa780bd397ca184f69bb3838.zip cpython-dc3d606bd931bc7ffa780bd397ca184f69bb3838.tar.gz cpython-dc3d606bd931bc7ffa780bd397ca184f69bb3838.tar.bz2 |
Fix to [ Bug #111165 ] doc-string removal masked by PYTHONOPTIMIZE
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 6 |
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) |