Skip to content

Commit

Permalink
docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Feb 11, 2024
1 parent 51d0d62 commit f0042a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/toolong/log_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ def read(self, size: int) -> bytes:
def scan_line_breaks(
self, batch_time: float = 0.25
) -> Iterable[tuple[int, list[int]]]:
"""Scan the file for line breaks.
Args:
batch_time: Time to group the batches.
Returns:
An iterable of tuples, containing the scan position and a list of offsets of new lines.
"""
fileno = self.fileno
size = self.size
if not size:
Expand Down

0 comments on commit f0042a1

Please sign in to comment.