diff options
author | Chris Liechti <cliechti@gmx.net> | 2020-09-21 00:47:01 +0200 |
---|---|---|
committer | Chris Liechti <cliechti@gmx.net> | 2020-09-21 00:47:01 +0200 |
commit | 8905abb978e3802cc35570120bc3da6a6395932a (patch) | |
tree | 0f7ae3aab0e2053cee9b0c5b0690f52de95247c7 | |
parent | 6fa82e1ad911d26fdfd37c19c491975609f4e39c (diff) | |
download | pyserial-8905abb978e3802cc35570120bc3da6a6395932a.tar.gz |
list_ports_linux: change debug code in main
-rw-r--r-- | serial/tools/list_ports_linux.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serial/tools/list_ports_linux.py b/serial/tools/list_ports_linux.py index 9346ae9..1c0a780 100644 --- a/serial/tools/list_ports_linux.py +++ b/serial/tools/list_ports_linux.py @@ -105,5 +105,5 @@ def comports(include_links=False): # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # test if __name__ == '__main__': - for port, desc, hwid in sorted(comports()): - print("{}: {} [{}]".format(port, desc, hwid)) + for info in sorted(comports()): + print("{0}: {0.subsystem}".format(info)) |