From 9c2ebb906d1c68c3d571b100c92ceb08805b94cd Mon Sep 17 00:00:00 2001 From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Thu, 13 Jan 2022 12:34:38 +0000 Subject: bpo-46344: Fix trace bug in else of try and try-star blocks (GH-30544) --- Python/compile.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index 0d821d4183f..b2702da8707 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -3475,7 +3475,6 @@ compiler_try_except(struct compiler *c, stmt_ty s) POP_EXCEPT_AND_RERAISE(c); compiler_use_next_block(c, orelse); VISIT_SEQ(c, stmt, s->v.Try.orelse); - ADDOP_JUMP(c, JUMP_FORWARD, end); compiler_use_next_block(c, end); return 1; } @@ -3702,7 +3701,6 @@ compiler_try_star_except(struct compiler *c, stmt_ty s) POP_EXCEPT_AND_RERAISE(c); compiler_use_next_block(c, orelse); VISIT_SEQ(c, stmt, s->v.TryStar.orelse); - ADDOP_JUMP(c, JUMP_FORWARD, end); compiler_use_next_block(c, end); return 1; } -- cgit v1.2.3