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

Method unlock

Lib/mailbox.py:705–709  ·  view source on GitHub ↗

Unlock the mailbox if it is locked.

(self)

Source from the content-addressed store, hash-verified

703 self._locked = True
704
705 def unlock(self):
706 """Unlock the mailbox if it is locked."""
707 if self._locked:
708 _unlock_file(self._file)
709 self._locked = False
710
711 def flush(self):
712 """Write any pending changes to disk."""

Callers 1

closeMethod · 0.95

Calls 1

_unlock_fileFunction · 0.85

Tested by

no test coverage detected