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 | 4cc699bfc7fbe5036b769f15ea9e8bdcbc55a5f7 (patch) | |
tree | 55fa9b77f2d51be9030ce8cdeb810e51c539b8b0 | |
parent | 26e947a62d33a42e06fc22ed699a067709ef1eae (diff) | |
download | pyserial-git-4cc699bfc7fbe5036b769f15ea9e8bdcbc55a5f7.tar.gz |
fix list ports (broken by last commit here)
-rw-r--r-- | pyserial/serial/tools/list_ports.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyserial/serial/tools/list_ports.py b/pyserial/serial/tools/list_ports.py index bfcfdeb..d373a55 100644 --- a/pyserial/serial/tools/list_ports.py +++ b/pyserial/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 |