def timeout(self, value):
        """Sets the timeout associated with the serial port."""
        self.check_pyb()
        try:
            self.pyb.serial.timeout = value
        except:
            # timeout is a property so it calls code, and that can fail
            # if the serial port is closed.
            pass
def timeout ( self , value ) : self . check_pyb ( ) try : self . pyb . serial . timeout = value except : pass
Sets the timeout associated with the serial port.