summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-12-13 21:08:15 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-12-13 21:08:15 (GMT)
commit7ced53cc636e6c6b63a8918b11f6f69fc64b0d33 (patch)
tree59691a25618c03e88724a813794dec2660479e1d /Python/compile.c
parent050ca6530d876b70ac60dca274280fe0911494dd (diff)
parent3cda0ed062892c46cbae43989ff59399e8042f58 (diff)
downloadcpython-7ced53cc636e6c6b63a8918b11f6f69fc64b0d33.zip
cpython-7ced53cc636e6c6b63a8918b11f6f69fc64b0d33.tar.gz
cpython-7ced53cc636e6c6b63a8918b11f6f69fc64b0d33.tar.bz2
merge 3.4 (#23048)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 8abe50f..97fe5c2 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -2029,10 +2029,9 @@ compiler_while(struct compiler *c, stmt_ty s)
if there is no else clause ?
*/
- if (constant == -1) {
+ if (constant == -1)
compiler_use_next_block(c, anchor);
- ADDOP(c, POP_BLOCK);
- }
+ ADDOP(c, POP_BLOCK);
compiler_pop_fblock(c, LOOP, loop);
if (orelse != NULL) /* what if orelse is just pass? */
VISIT_SEQ(c, stmt, s->v.While.orelse);