From dc3d606bd931bc7ffa780bd397ca184f69bb3838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lemburg?= Date: Fri, 25 Aug 2000 21:00:46 +0000 Subject: Fix to [ Bug #111165 ] doc-string removal masked by PYTHONOPTIMIZE --- Python/pythonrun.c | 6 +++--- 1 file 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) -- cgit v0.12