MCPcopy Create free account
hub / github.com/PyTables/PyTables / _check_open

Method _check_open

tables/file.py:2324–2331  ·  view source on GitHub ↗

Check the state of the file. If the file is closed, a `ClosedFileError` is raised.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers 11

get_nodeMethod · 0.95
copy_fileMethod · 0.95
is_undo_enabledMethod · 0.95
enable_undoMethod · 0.95
disable_undoMethod · 0.95
markMethod · 0.95
undoMethod · 0.95
redoMethod · 0.95
gotoMethod · 0.95
get_current_markMethod · 0.95
flushMethod · 0.95

Calls 1

ClosedFileErrorClass · 0.85

Tested by

no test coverage detected