(self)
| 18 | raise io.UnsupportedOperation("File not open for reading") |
| 19 | |
| 20 | def _check_can_write(self): |
| 21 | if not self.writable(): |
| 22 | raise io.UnsupportedOperation("File not open for writing") |
| 23 | |
| 24 | def _check_can_seek(self): |
| 25 | if not self.readable(): |