MCPcopy Index your code
hub / github.com/python/cpython / _rewind

Method _rewind

Lib/compression/_common/_streams.py:124–128  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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.

Callers 1

seekMethod · 0.95

Calls 1

seekMethod · 0.45

Tested by

no test coverage detected