(self, key, pos_and_siz_pair)
| 179 | # at offset pos and with length siz. Add an index record to |
| 180 | # the in-memory index dict, and append one to the directory file. |
| 181 | def _addkey(self, key, pos_and_siz_pair): |
| 182 | self._index[key] = pos_and_siz_pair |
| 183 | with _io.open(self._dirfile, 'a', encoding="Latin-1") as f: |
| 184 | self._chmod(self._dirfile) |
| 185 | f.write("%r, %r\n" % (key.decode("Latin-1"), pos_and_siz_pair)) |
| 186 | |
| 187 | def __setitem__(self, key, val): |
| 188 | if self._readonly: |
no test coverage detected