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

Method _checkWritable

tools/python-3.11.9-amd64/Lib/_pyio.py:1650–1652  ·  view source on GitHub ↗
(self, msg=None)

Source from the content-addressed store, hash-verified

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

Callers 2

writeMethod · 0.95
truncateMethod · 0.95

Calls 1

Tested by

no test coverage detected