def lock(self):
        if not self._locked:
            _lock_file(self._file)
            self._locked = True
Open port with current settings. This may throw a SerialException
dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/_singlefileMailbox.lock--crossover with--dataset/ETHPy150Open Robot-Will/Stino/stino/pyarduino/base/pyserial/serialwin32.py/Win32Serial.open