Skip to content

Commit

Permalink
chore(_inner_type_to_spans_copy): if e <= se is not needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
5j9 committed Apr 9, 2024
1 parent 97ee353 commit 0d8eef5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wikitextparser/_wikitext.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,8 @@ def _inner_type_to_spans_copy(self) -> Dict[str, List[List[int]]]:
type_: [
[s - ss, e - ss, m, ba[:] if ba is not None else None]
for s, e, m, ba in spans[
bisect_left(spans, [ss]) : bisect_left(spans, [se])
bisect_right(spans, [ss]) : bisect_right(spans, [se])
]
if e <= se
]
for type_, spans in self._type_to_spans.items()
}
Expand Down

0 comments on commit 0d8eef5

Please sign in to comment.