Skip to content

Commit

Permalink
Additional check on merging pieces
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmojaki committed Nov 27, 2022
1 parent 6a17195 commit d836961
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stack_data/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def _clean_pieces(self) -> Iterator[range]:
for (start, end) in pieces[1:]:
(last_start, last_end) = new_pieces[-1]
if start < last_end:
assert start == last_end - 1
assert ';' in self.lines[start - 1]
new_pieces[-1] = (last_start, end)
else:
Expand Down

0 comments on commit d836961

Please sign in to comment.