Check the state of the file. If the file is closed, a `ClosedFileError` is raised.
(self)
| 2322 | return group._f_walk_groups() |
| 2323 | |
| 2324 | def _check_open(self) -> None: |
| 2325 | """Check the state of the file. |
| 2326 | |
| 2327 | If the file is closed, a `ClosedFileError` is raised. |
| 2328 | |
| 2329 | """ |
| 2330 | if not self.isopen: |
| 2331 | raise ClosedFileError("the file object is closed") |
| 2332 | |
| 2333 | def _iswritable(self) -> bool: |
| 2334 | """Return True if the file is writable.""" |
no test coverage detected