diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/compile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c index 4cdc26f..1e937e4 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2646,6 +2646,9 @@ static PyObject * get_docstring(n) node *n; { + /* Don't generate doc-strings if run with -OO */ + if (Py_OptimizeFlag > 1) + return NULL; n = get_rawdocstring(n); if (n == NULL) return NULL; |