def lock(self):
        if not self._locked:
            _lock_file(self._file)
            self._locked = True
Lock the mailbox.
dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/_singlefileMailbox.lock