MCPcopy 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_replMethod · 0.95
__exit__Method · 0.45

Calls 3

_rmtreeMethod · 0.95
detachMethod · 0.45
existsMethod · 0.45

Tested by 1

run_replMethod · 0.76