Internal method; reopen the internal file handle (probably because the log file got rotated/truncated).
(self)
| 135 | return None |
| 136 | |
| 137 | def _reset(self): |
| 138 | """Internal method; reopen the internal file handle (probably |
| 139 | because the log file got rotated/truncated).""" |
| 140 | self.f.close() |
| 141 | self.f = open(self.path, "r") |
| 142 | self.pos = self.f.tell() |
| 143 | self.last_read = time() |
| 144 | |
| 145 | def nextline(self): |
| 146 | """Return the next line from the file. Blocks if there are no lines |