def __set_baudrate(self, baud):
log.info('<STR_LIT>', baud)<EOL>self.__writeln(UART_SETUP.format(baud=baud))<EOL>time.sleep(<NUM_LIT:0.1>)<EOL>try:<EOL><INDENT>self._port.setBaudrate(baud)<EOL><DEDENT>except AttributeError:<EOL><INDENT>self._port.baudrate = baud<EOL><DEDENT>
setting baudrate if supported