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

Method _checkSeekable

Lib/_pyio.py:427–432  ·  view source on GitHub ↗

Internal: raise UnsupportedOperation if file is not seekable

(self, msg=None)

Source from the content-addressed store, hash-verified

425 return False
426
427 def _checkSeekable(self, msg=None):
428 """Internal: raise UnsupportedOperation if file is not seekable
429 """
430 if not self.seekable():
431 raise UnsupportedOperation("File or stream is not seekable."
432 if msg is None else msg)
433
434 def readable(self):
435 """Return a bool indicating whether object was opened for reading.

Callers 1

__init__Method · 0.80

Calls 2

seekableMethod · 0.95

Tested by

no test coverage detected