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

Method umount

tables/link.py:435–441  ·  view source on GitHub ↗

Safely unmount self.extfile, if opened.

(self)

Source from the content-addressed store, hash-verified

433 return self.extfile._get_node(target)
434
435 def umount(self) -> None:
436 """Safely unmount self.extfile, if opened."""
437 extfile = self.extfile
438 # Close external file, if open
439 if extfile is not None and extfile.isopen:
440 extfile.close()
441 self.extfile = None
442
443 def _f_close(self) -> None:
444 """Especific close for external links."""

Callers 2

_f_closeMethod · 0.95
test09_umountMethod · 0.80

Calls 1

closeMethod · 0.45

Tested by 1

test09_umountMethod · 0.64