Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __exit__
Method
__exit__
Lib/tempfile.py:969–971 ·
view source on GitHub ↗
(self, exc, value, tb)
Source
from the content-addressed store, hash-verified
967
return
self.name
968
969
def
__exit__(self, exc, value, tb):
970
if
self._delete:
971
self.cleanup()
972
973
def
cleanup(self):
974
if
self._finalizer.detach() or _os.path.exists(self.name):
Callers
1
__exit__
Method · 0.45
Calls
1
cleanup
Method · 0.95
Tested by
no test coverage detected