Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ cleanup
Method
cleanup
Lib/tempfile.py:973–975 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
971
self.cleanup()
972
973
def
cleanup(self):
974
if
self._finalizer.detach() or _os.path.exists(self.name):
975
self._rmtree(self.name, ignore_errors=self._ignore_cleanup_errors)
976
977
__class_getitem__ = classmethod(_types.GenericAlias)
Callers
3
__exit__
Method · 0.95
run_repl
Method · 0.95
__exit__
Method · 0.45
Calls
3
_rmtree
Method · 0.95
detach
Method · 0.45
exists
Method · 0.45
Tested by
1
run_repl
Method · 0.76