Internal: raise UnsupportedOperation if file is not readable
(self, msg=None)
| 470 | return False |
| 471 | |
| 472 | def _checkReadable(self, msg=None): |
| 473 | """Internal: raise UnsupportedOperation if file is not readable |
| 474 | """ |
| 475 | if not self.readable(): |
| 476 | raise UnsupportedOperation("File or stream is not readable." |
| 477 | if msg is None else msg) |
| 478 | |
| 479 | def writable(self): |
| 480 | """Return a bool indicating whether object was opened for writing. |
no test coverage detected