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

Method unlock

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

Unlock the mailbox if it is locked.

(self)

Source from the content-addressed store, hash-verified

1098 self._locked = True
1099
1100 def unlock(self):
1101 """Unlock the mailbox if it is locked."""
1102 if self._locked:
1103 _unlock_file(self._file)
1104 _sync_close(self._file)
1105 del self._file
1106 self._locked = False
1107
1108 def flush(self):
1109 """Write any pending changes to the disk."""

Callers 1

closeMethod · 0.95

Calls 2

_unlock_fileFunction · 0.85
_sync_closeFunction · 0.85

Tested by

no test coverage detected