Internal: raise UnsupportedOperation if file is not writable
(self, msg=None)
| 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): |
no test coverage detected