Internal: raise UnsupportedOperation if file is not readable
(self, msg=None)
| 439 | return False |
| 440 | |
| 441 | def _checkReadable(self, msg=None): |
| 442 | """Internal: raise UnsupportedOperation if file is not readable |
| 443 | """ |
| 444 | if not self.readable(): |
| 445 | raise UnsupportedOperation("File or stream is not readable." |
| 446 | if msg is None else msg) |
| 447 | |
| 448 | def writable(self): |
| 449 | """Return a bool indicating whether object was opened for writing. |
no test coverage detected