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

Method lock

Lib/mailbox.py:692–696  ·  view source on GitHub ↗

Lock the mailbox.

(self)

Source from the content-addressed store, hash-verified

690 return len(self._toc)
691
692 def lock(self):
693 """Lock the mailbox."""
694 if not self._locked:
695 _lock_file(self._file)
696 self._locked = True
697
698 def unlock(self):
699 """Unlock the mailbox if it is locked."""

Callers

nothing calls this directly

Calls 1

_lock_fileFunction · 0.85

Tested by

no test coverage detected