We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21b08aa commit c28dbf8Copy full SHA for c28dbf8
1 file changed
src/bytecode/cfg.py
@@ -871,9 +871,7 @@ def from_bytecode(bytecode: _bytecode.Bytecode) -> "ControlFlowGraph":
871
# the new one since the blocks are disconnected.
872
if last_instr.is_final() and temp:
873
old_block.append(TryEnd(try_begins[active_try_begin][-1]))
874
- new_tb = TryBegin(
875
- active_try_begin.target, active_try_begin.push_lasti
876
- )
+ new_tb = active_try_begin.copy()
877
block.append(new_tb)
878
# Add this new TryBegin to the map to properly update
879
# the target.
0 commit comments