summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-05-14 11:56:03 (GMT)
committerGuido van Rossum <guido@python.org>1991-05-14 11:56:03 (GMT)
commitfb8edfce22dccfb0014f4f43b1735d7e42e80c45 (patch)
tree6da9f826318790c01bd09b6b437382d0f8a6ef0d /Python/compile.c
parent4965bc8ac4c9922f87ec7bfa839a85c95f411a5c (diff)
downloadcpython-fb8edfce22dccfb0014f4f43b1735d7e42e80c45.zip
cpython-fb8edfce22dccfb0014f4f43b1735d7e42e80c45.tar.gz
cpython-fb8edfce22dccfb0014f4f43b1735d7e42e80c45.tar.bz2
Don't optimize <string> and <stdin> code
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 5e6a18e..5fa405d 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1878,7 +1878,7 @@ compile(n, filename)
else
co = NULL;
com_free(&sc);
- if (co != NULL)
+ if (co != NULL && filename[0] != '<')
optimizer(co);
return co;
}