MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / __enter__

Method __enter__

python/dolfinx/io/utils.py:124–126  ·  view source on GitHub ↗

Enter context manager.

(self)

Source from the content-addressed store, hash-verified

122 """
123
124 def __enter__(self):
125 """Enter context manager."""
126 return self
127
128 def __exit__(self, exception_type, exception_value, traceback):
129 """Exit context manager and close file."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected