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

Method _checkReadable

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

Internal: raise UnsupportedOperation if file is not readable

(self, msg=None)

Source from the content-addressed store, hash-verified

470 return False
471
472 def _checkReadable(self, msg=None):
473 """Internal: raise UnsupportedOperation if file is not readable
474 """
475 if not self.readable():
476 raise UnsupportedOperation("File or stream is not readable."
477 if msg is None else msg)
478
479 def writable(self):
480 """Return a bool indicating whether object was opened for writing.

Callers 2

readintoMethod · 0.45
readMethod · 0.45

Calls 2

readableMethod · 0.95

Tested by

no test coverage detected