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

Method __exit__

Lib/profiling/sampling/binary_collector.py:114–120  ·  view source on GitHub ↗

Context manager exit - finalize unless there was an error.

(self, exc_type, exc_val, exc_tb)

Source from the content-addressed store, hash-verified

112 return self
113
114 def __exit__(self, exc_type, exc_val, exc_tb):
115 """Context manager exit - finalize unless there was an error."""
116 if exc_type is None:
117 self._writer.finalize()
118 else:
119 self._writer.close()
120 return False

Callers

nothing calls this directly

Calls 2

finalizeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected