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

Method _checkWritable

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

Internal: raise UnsupportedOperation if file is not writable

(self, msg=None)

Source from the content-addressed store, hash-verified

484 return False
485
486 def _checkWritable(self, msg=None):
487 """Internal: raise UnsupportedOperation if file is not writable
488 """
489 if not self.writable():
490 raise UnsupportedOperation("File or stream is not writable."
491 if msg is None else msg)
492
493 @property
494 def closed(self):

Callers 2

writeMethod · 0.45
truncateMethod · 0.45

Calls 2

writableMethod · 0.95

Tested by

no test coverage detected