(self)
| 122 | |
| 123 | # Rewind the file to the beginning of the data stream. |
| 124 | def _rewind(self): |
| 125 | self._fp.seek(0) |
| 126 | self._eof = False |
| 127 | self._pos = 0 |
| 128 | self._decompressor = self._decomp_factory(**self._decomp_args) |
| 129 | |
| 130 | def seek(self, offset, whence=io.SEEK_SET): |
| 131 | # Recalculate offset as an absolute file position. |