MCPcopy Index your code
hub / github.com/python/cpython / __exit__

Method __exit__

Lib/tempfile.py:537–540  ·  view source on GitHub ↗
(self, exc, value, tb)

Source from the content-addressed store, hash-verified

535 # Need to trap __exit__ as well to ensure the file gets
536 # deleted when used in a with statement
537 def __exit__(self, exc, value, tb):
538 result = self.file.__exit__(exc, value, tb)
539 self._closer.cleanup()
540 return result
541
542 def close(self):
543 """

Callers

nothing calls this directly

Calls 2

__exit__Method · 0.45
cleanupMethod · 0.45

Tested by

no test coverage detected