Return True if the file is writable.
(self)
| 2331 | raise ClosedFileError("the file object is closed") |
| 2332 | |
| 2333 | def _iswritable(self) -> bool: |
| 2334 | """Return True if the file is writable.""" |
| 2335 | return self.mode in ("w", "a", "r+") |
| 2336 | |
| 2337 | def _check_writable(self) -> None: |
| 2338 | """Check whether the file is writable. |
no outgoing calls
no test coverage detected