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

Method close

Lib/tempfile.py:471–478  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

469 pass
470
471 def close(self):
472 if not self.close_called:
473 self.close_called = True
474 try:
475 self.file.close()
476 finally:
477 if self.delete and self.delete_on_close:
478 self.cleanup()
479
480 def __del__(self):
481 close_called = self.close_called

Callers 7

_get_default_tempdirFunction · 0.45
cleanupMethod · 0.45
closeMethod · 0.45
NamedTemporaryFileFunction · 0.45
openerFunction · 0.45
__exit__Method · 0.45
closeMethod · 0.45

Calls 1

cleanupMethod · 0.95

Tested by

no test coverage detected