summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-12-13 16:08:15 -0500
committerBenjamin Peterson <benjamin@python.org>2014-12-13 16:08:15 -0500
commitd4ccf0b1f27abc1d9f44f053ebb619d31a5ad808 (patch)
treefc409358247ba65f047d500770654d1c6f585565 /Python/compile.c
parenta0964e2ad87098d93555e9b632f982936c9508bb (diff)
parent7f9644fe46166f4cbf29e1f7f753c910a8ec958b (diff)
downloadcpython-d4ccf0b1f27abc1d9f44f053ebb619d31a5ad808.tar.gz
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 8abe50f4ca..97fe5c2a3d 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);