#NEWLINE# def comports( ) : #NEWLINE# #INDENT# 'scan for available ports. return a list of device names.' #NEWLINE# devices = glob . glob ( '/dev/ttyf*' ) #NEWLINE# return [ list_ports_common . ListPortInfo ( d ) for d in devices ]