summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-10-26 20:21:13 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-10-26 20:21:13 (GMT)
commitbdca942ffcdb6e14758d3e2f7a9e9fbbfa931c06 (patch)
tree47ab776f87d60ae4372e5ef3c010fc3f7117332e /Parser
parentadc93b9499cc04c41499c313a08b45ea34606e21 (diff)
downloadcpython-bdca942ffcdb6e14758d3e2f7a9e9fbbfa931c06.zip
cpython-bdca942ffcdb6e14758d3e2f7a9e9fbbfa931c06.tar.gz
cpython-bdca942ffcdb6e14758d3e2f7a9e9fbbfa931c06.tar.bz2
fix __future__ imports when multiple features are given
Diffstat (limited to 'Parser')
-rw-r--r--Parser/parser.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Parser/parser.c b/Parser/parser.c
index 8d52153..e597ea2 100644
--- a/Parser/parser.c
+++ b/Parser/parser.c
@@ -206,13 +206,10 @@ future_hack(parser_state *ps)
char *str_ch = STR(CHILD(cch, 0));
if (strcmp(str_ch, FUTURE_WITH_STATEMENT) == 0) {
ps->p_flags |= CO_FUTURE_WITH_STATEMENT;
- break;
} else if (strcmp(str_ch, FUTURE_PRINT_FUNCTION) == 0) {
ps->p_flags |= CO_FUTURE_PRINT_FUNCTION;
- break;
} else if (strcmp(str_ch, FUTURE_UNICODE_LITERALS) == 0) {
ps->p_flags |= CO_FUTURE_UNICODE_LITERALS;
- break;
}
}
}