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

Method _checkReadable

Lib/_pyio.py:441–446  ·  view source on GitHub ↗

Internal: raise UnsupportedOperation if file is not readable

(self, msg=None)

Source from the content-addressed store, hash-verified

439 return False
440
441 def _checkReadable(self, msg=None):
442 """Internal: raise UnsupportedOperation if file is not readable
443 """
444 if not self.readable():
445 raise UnsupportedOperation("File or stream is not readable."
446 if msg is None else msg)
447
448 def writable(self):
449 """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