Skip to content

Commit

Permalink
explit yield instead of yield via return
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Jun 27, 2024
1 parent ade2695 commit 67ec63f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xdis/codetype/code310.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ def co_lines(self):
line_deltas = [c for c in tuple(self.co_linetable[1::2])]

if len(byte_increments) == 0:
return start_offset, len(self.co_code), line_number
yield start_offset, len(self.co_code), line_number
return

byte_incr = byte_increments[0]
line_delta = line_deltas[0]
Expand Down

0 comments on commit 67ec63f

Please sign in to comment.