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

Method close

tools/python-3.11.9-amd64/Lib/mailbox.py:728–737  ·  view source on GitHub ↗

Flush and close the mailbox.

(self)

Source from the content-addressed store, hash-verified

726 return
727
728 def close(self):
729 """Flush and close the mailbox."""
730 try:
731 self.flush()
732 finally:
733 try:
734 if self._locked:
735 self.unlock()
736 finally:
737 self._file.close() # Sync has been done by self.flush() above.
738
739 def _lookup(self, key=None):
740 """Return (start, stop) or raise KeyError."""

Callers

nothing calls this directly

Calls 3

flushMethod · 0.95
unlockMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected