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

Method seek

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

Source from the content-addressed store, hash-verified

3156 self.hit_eof = self.tell() == len(self.getvalue())
3157 return super(MyBytesIO, self).read(n)
3158 def seek(self, *args):
3159 self.hit_eof = False
3160 return super(MyBytesIO, self).seek(*args)
3161
3162 data = bz2.compress(tarfile.TarInfo("foo").tobuf())
3163 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