Internal: raise UnsupportedOperation if file is not writable
(self, msg=None)
| 453 | return False |
| 454 | |
| 455 | def _checkWritable(self, msg=None): |
| 456 | """Internal: raise UnsupportedOperation if file is not writable |
| 457 | """ |
| 458 | if not self.writable(): |
| 459 | raise UnsupportedOperation("File or stream is not writable." |
| 460 | if msg is None else msg) |
| 461 | |
| 462 | @property |
| 463 | def closed(self): |
no test coverage detected