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

Method unlock

Lib/mailbox.py:1177–1183  ·  view source on GitHub ↗

Unlock the mailbox if it is locked.

(self)

Source from the content-addressed store, hash-verified

1175 self._locked = True
1176
1177 def unlock(self):
1178 """Unlock the mailbox if it is locked."""
1179 if self._locked:
1180 _unlock_file(self._file)
1181 _sync_close(self._file)
1182 del self._file
1183 self._locked = False
1184
1185 def flush(self):
1186 """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