MCPcopy
hub / github.com/Textualize/toolong / get_line_from_index_blocking

Method get_line_from_index_blocking

src/toolong/log_lines.py:480–483  ·  view source on GitHub ↗
(self, index: int)

Source from the content-addressed store, hash-verified

478 return (log_file, start, end)
479
480 def get_line_from_index_blocking(self, index: int) -> str | None:
481 with self._lock:
482 log_file, start, end = self.index_to_span(index)
483 return log_file.get_line(start, end)
484
485 def get_line_from_index(self, index: int) -> str | None:
486 with self._lock:

Callers 1

saveMethod · 0.95

Calls 2

index_to_spanMethod · 0.95
get_lineMethod · 0.45

Tested by

no test coverage detected