MCPcopy Index your code
hub / github.com/RustPython/RustPython / seek

Method seek

Lib/test/test_tarfile.py:3141–3143  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

3139 self.hit_eof = self.tell() == len(self.getvalue())
3140 return super(MyBytesIO, self).read(n)
3141 def seek(self, *args):
3142 self.hit_eof = False
3143 return super(MyBytesIO, self).seek(*args)
3144
3145 data = bz2.compress(tarfile.TarInfo("foo").tobuf())
3146 for x in range(len(data) + 1):

Callers 5

test_fileobj_seekMethod · 0.45
test_header_offsetMethod · 0.45
_fs_supports_holesMethod · 0.45

Calls 1

superClass · 0.85

Tested by

no test coverage detected