Return a file-like representation or raise a KeyError.
(self, key, from_=False)
| 800 | return string.replace(linesep, b'\n') |
| 801 | |
| 802 | def get_file(self, key, from_=False): |
| 803 | """Return a file-like representation or raise a KeyError.""" |
| 804 | start, stop = self._lookup(key) |
| 805 | self._file.seek(start) |
| 806 | if not from_: |
| 807 | self._file.readline() |
| 808 | return _PartialFile(self._file, self._file.tell(), stop) |
| 809 | |
| 810 | def _install_message(self, message): |
| 811 | """Format a message and blindly write to self._file.""" |
nothing calls this directly
no test coverage detected