summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2022-01-13 12:34:38 (GMT)
committerGitHub <noreply@github.com>2022-01-13 12:34:38 (GMT)
commit9c2ebb906d1c68c3d571b100c92ceb08805b94cd (patch)
tree6952394ebf2354ea5fe8cfe5760158a332582f78 /Python/compile.c
parent443b308fee088e21bbf472c376c5c9e3648f916c (diff)
downloadcpython-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.c2
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;
}