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

Method _check_can_seek

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

Source from the content-addressed store, hash-verified

22 raise io.UnsupportedOperation("File not open for writing")
23
24 def _check_can_seek(self):
25 if not self.readable():
26 raise io.UnsupportedOperation("Seeking is only supported "
27 "on files open for reading")
28 if not self.seekable():
29 raise io.UnsupportedOperation("The underlying file object "
30 "does not support seeking")
31
32
33class DecompressReader(io.RawIOBase):

Callers 2

seekMethod · 0.80
seekMethod · 0.80

Calls 2

readableMethod · 0.45
seekableMethod · 0.45

Tested by

no test coverage detected