def print_all_serial_ports(): """Prints the open serial ports line per line""" ports = comports() for port in ports: print(port)