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

Method _cleanup

Lib/tempfile.py:958–961  ·  view source on GitHub ↗
(cls, name, warn_message, ignore_errors=False, delete=True)

Source from the content-addressed store, hash-verified

956
957 @classmethod
958 def _cleanup(cls, name, warn_message, ignore_errors=False, delete=True):
959 if delete:
960 cls._rmtree(name, ignore_errors=ignore_errors)
961 _warnings.warn(warn_message, ResourceWarning)
962
963 def __repr__(self):
964 return "<{} {!r}>".format(self.__class__.__name__, self.name)

Callers

nothing calls this directly

Calls 2

_rmtreeMethod · 0.80
warnMethod · 0.45

Tested by

no test coverage detected