MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / __enter__

Method __enter__

Utility/Sandbox.py:42–44  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

40 self.fp = None
41
42 def __enter__(self):
43 self.fp = open(self.file, self.mode)
44 return self.fp
45
46 def __exit__(self, exc_type, exc_val, exc_tb):
47 if self.fp is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected