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

Method unlock

Lib/mailbox.py:1170–1176  ·  view source on GitHub ↗

Unlock the mailbox if it is locked.

(self)

Source from the content-addressed store, hash-verified

1168 self._locked = True
1169
1170 def unlock(self):
1171 """Unlock the mailbox if it is locked."""
1172 if self._locked:
1173 _unlock_file(self._file)
1174 _sync_close(self._file)
1175 del self._file
1176 self._locked = False
1177
1178 def flush(self):
1179 """Write any pending changes to the disk."""

Callers 7

closeMethod · 0.95
test_lock_unlockMethod · 0.45
test_lock_unlockMethod · 0.45
test_lock_conflictMethod · 0.45
test_issue7627Method · 0.45
test_packMethod · 0.45

Calls 2

_unlock_fileFunction · 0.85
_sync_closeFunction · 0.85

Tested by 6

test_lock_unlockMethod · 0.36
test_lock_unlockMethod · 0.36
test_lock_conflictMethod · 0.36
test_issue7627Method · 0.36
test_packMethod · 0.36