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

Method __exit__

Lib/test/test_launcher.py:162–166  ·  view source on GitHub ↗
(self, *exc_info)

Source from the content-addressed store, hash-verified

160 self.path.write_text(self.content, encoding="utf-16")
161
162 def __exit__(self, *exc_info):
163 if self._preserved is None:
164 self.path.unlink()
165 else:
166 self.path.write_bytes(self._preserved)
167
168
169class RunPyMixin:

Callers

nothing calls this directly

Calls 2

unlinkMethod · 0.45
write_bytesMethod · 0.45

Tested by

no test coverage detected