Return a file-like representation or raise a KeyError.
(self, key, from_=False)
| 863 | return string.replace(linesep, b'\n') |
| 864 | |
| 865 | def get_file(self, key, from_=False): |
| 866 | """Return a file-like representation or raise a KeyError.""" |
| 867 | start, stop = self._lookup(key) |
| 868 | self._file.seek(start) |
| 869 | if not from_: |
| 870 | self._file.readline() |
| 871 | return _PartialFile(self._file, self._file.tell(), stop) |
| 872 | |
| 873 | def _install_message(self, message): |
| 874 | """Format a message and blindly write to self._file.""" |
nothing calls this directly
no test coverage detected