MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _checkSeekable

Method _checkSeekable

tools/python-3.11.9-amd64/Lib/_pyio.py:458–463  ·  view source on GitHub ↗

Internal: raise UnsupportedOperation if file is not seekable

(self, msg=None)

Source from the content-addressed store, hash-verified

456 return False
457
458 def _checkSeekable(self, msg=None):
459 """Internal: raise UnsupportedOperation if file is not seekable
460 """
461 if not self.seekable():
462 raise UnsupportedOperation("File or stream is not seekable."
463 if msg is None else msg)
464
465 def readable(self):
466 """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