diff -r 37c06d20dda5 Python/compile.c --- a/Python/compile.c Mon Oct 14 10:44:25 2013 +0300 +++ b/Python/compile.c Mon Oct 14 15:47:35 2013 +0200 @@ -1906,8 +1906,8 @@ VISIT(c, expr, s->v.If.test); ADDOP_JABS(c, POP_JUMP_IF_FALSE, next); VISIT_SEQ(c, stmt, s->v.If.body); - ADDOP_JREL(c, JUMP_FORWARD, end); - if (s->v.If.orelse) { + if (s->v.If.orelse && asdl_seq_LEN(s->v.If.orelse)) { + ADDOP_JREL(c, JUMP_FORWARD, end); compiler_use_next_block(c, next); VISIT_SEQ(c, stmt, s->v.If.orelse); }