MCPcopy Index your code
hub / github.com/RustPython/RustPython / unlock

Method unlock

Lib/mailbox.py:698–702  ·  view source on GitHub ↗

Unlock the mailbox if it is locked.

(self)

Source from the content-addressed store, hash-verified

696 self._locked = True
697
698 def unlock(self):
699 """Unlock the mailbox if it is locked."""
700 if self._locked:
701 _unlock_file(self._file)
702 self._locked = False
703
704 def flush(self):
705 """Write any pending changes to disk."""

Callers 1

closeMethod · 0.95

Calls 1

_unlock_fileFunction · 0.85

Tested by

no test coverage detected