MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / close

Method close

tools/python-3.11.9-amd64/Lib/tempfile.py:456–463  ·  view source on GitHub ↗
(self, unlink=_os.unlink)

Source from the content-addressed store, hash-verified

454 # __del__ is called.
455
456 def close(self, unlink=_os.unlink):
457 if not self.close_called and self.file is not None:
458 self.close_called = True
459 try:
460 self.file.close()
461 finally:
462 if self.delete:
463 unlink(self.name)
464
465 # Need to ensure the file is deleted on __del__
466 def __del__(self):

Callers 7

__del__Method · 0.95
_get_default_tempdirFunction · 0.45
closeMethod · 0.45
NamedTemporaryFileFunction · 0.45
openerFunction · 0.45
__exit__Method · 0.45
closeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected