(self)
| 431 | self._last_size = 0 |
| 432 | |
| 433 | def _read_full(self) -> None: |
| 434 | with open(self.path, "r", encoding="utf-8", errors="replace") as f: |
| 435 | for line in f: |
| 436 | self.parser.parse_line(line.rstrip("\n")) |
| 437 | self._last_position = f.tell() |
| 438 | try: |
| 439 | stat = self.path.stat() |
| 440 | self._last_size = stat.st_size |
| 441 | self._last_inode = stat.st_ino |
| 442 | except Exception: |
| 443 | pass |
| 444 | |
| 445 | def load_initial(self) -> None: |
| 446 | if not self.path.exists(): |
no test coverage detected