We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21b08aa + c28dbf8 commit 93ffb06Copy full SHA for 93ffb06
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