diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2013-10-17 14:44:59 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2013-10-17 14:44:59 +0000 |
commit | 0241ee605e57eb12f429581b1cfa0f0d170dc3eb (patch) | |
tree | 32b828cc83b97a45709d7badd935776bf4c44a25 | |
parent | 19aab07e645fa972c7e6599d5cba5079161ff1fc (diff) | |
download | pyserial-0241ee605e57eb12f429581b1cfa0f0d170dc3eb.tar.gz |
fix list ports (broken by last commit here)
git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@486 f19166aa-fa4f-0410-85c2-fa1106f25c8a
-rw-r--r-- | serial/tools/list_ports.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serial/tools/list_ports.py b/serial/tools/list_ports.py index bfcfdeb..d373a55 100644 --- a/serial/tools/list_ports.py +++ b/serial/tools/list_ports.py @@ -41,7 +41,7 @@ def grep(regexp): """ r = re.compile(regexp, re.I) for port, desc, hwid in comports(): - if r.search(port) or r.search(regexp) or r.search(regexp): + if r.search(port) or r.search(desc) or r.search(hwid): yield port, desc, hwid |