Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb8edfc

Browse files
committed
Don't optimize <string> and <stdin> code
1 parent 4965bc8 commit fb8edfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ compile(n, filename)
18781878
else
18791879
co = NULL;
18801880
com_free(&sc);
1881-
if (co != NULL)
1881+
if (co != NULL && filename[0] != '<')
18821882
optimizer(co);
18831883
return co;
18841884
}

0 commit comments

Comments
 (0)