def get_baudrates():
baudrates = []<EOL>s = pyserial.Serial()<EOL>for name, value in s.getSupportedBaudrates():<EOL><INDENT>baudrates.append((value, name,))<EOL><DEDENT>return tuple(baudrates)<EOL>
Returns supported baud rates in a Django-like choices tuples.