mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-46344: Fix trace bug in else of try and try-star blocks (GH-30544)
This commit is contained in:
parent
443b308fee
commit
9c2ebb906d
3 changed files with 56 additions and 32 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue