MCPcopy Index your code
hub / github.com/RustPython/RustPython / _checkWritable

Method _checkWritable

Lib/_pyio.py:1651–1653  ·  view source on GitHub ↗
(self, msg=None)

Source from the content-addressed store, hash-verified

1649 raise UnsupportedOperation('File not open for reading')
1650
1651 def _checkWritable(self, msg=None):
1652 if not self._writable:
1653 raise UnsupportedOperation('File not open for writing')
1654
1655 def read(self, size=None):
1656 """Read at most size bytes, returned as bytes.

Callers 2

writeMethod · 0.95
truncateMethod · 0.95

Calls 1

Tested by

no test coverage detected