Skip to content

Commit 9f53642

Browse files
committed
undo walrus
1 parent aea50fd commit 9f53642

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/bytecode/concrete.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ def from_code(
347347
Tuple[Optional[int], Optional[int], Optional[int], Optional[int]]
348348
] = iter(code.co_positions())
349349
for offset in range(0, len(bc), 2):
350-
arg = bc[offset + 1] if opcode_has_argument(op := bc[offset]) else UNSET
350+
op = bc[offset]
351+
arg = bc[offset + 1] if opcode_has_argument(op) else UNSET
351352
pos = next(pos_iter, None)
352353
loc: Optional[InstrLocation] = (
353354
InstrLocation._from_tuple(*pos) if pos is not None else None

0 commit comments

Comments
 (0)