Unlock the mailbox if it is locked.
(self)
| 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.""" |
no test coverage detected