diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-01-13 12:34:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 12:34:38 (GMT) |
commit | 9c2ebb906d1c68c3d571b100c92ceb08805b94cd (patch) | |
tree | 6952394ebf2354ea5fe8cfe5760158a332582f78 /Python/compile.c | |
parent | 443b308fee088e21bbf472c376c5c9e3648f916c (diff) | |
download | cpython-9c2ebb906d1c68c3d571b100c92ceb08805b94cd.zip cpython-9c2ebb906d1c68c3d571b100c92ceb08805b94cd.tar.gz cpython-9c2ebb906d1c68c3d571b100c92ceb08805b94cd.tar.bz2 |
bpo-46344: Fix trace bug in else of try and try-star blocks (GH-30544)
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c index 0d821d4..b2702da 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; } |