diff options
author | Marc-André Lemburg <mal@egenix.com> | 2000-08-25 21:00:46 +0000 |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2000-08-25 21:00:46 +0000 |
commit | 94086ef10fec38cf69eb8e80a09027c23faf3b39 (patch) | |
tree | 2179854537f42d91b2914ea33d00550685cf1094 /Python/pythonrun.c | |
parent | a302560e0822e4c5a598c56227172ac01c5773d9 (diff) | |
download | cpython-94086ef10fec38cf69eb8e80a09027c23faf3b39.tar.gz |
Fix to [ Bug #111165 ] doc-string removal masked by PYTHONOPTIMIZE
Diffstat (limited to 'Python/pythonrun.c')
-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 a99c1b4ba2..8d571c369c 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) |