diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2012-03-29 21:58:54 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2012-03-29 21:58:54 +0000 |
commit | 47c9d1693a5c7f89c5aecaff9b03a09638bde5dc (patch) | |
tree | 8eeb75454cf0737492207dcdbbf91f86cc9dfcf9 | |
parent | 21e2c84ca571bb94dc6d2d631a8559b29b962a8d (diff) | |
download | pyserial-git-47c9d1693a5c7f89c5aecaff9b03a09638bde5dc.tar.gz |
ignore case in description and hwid too
-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 52eb7a1..c115441 100644 --- a/pyserial/serial/tools/list_ports.py +++ b/pyserial/serial/tools/list_ports.py @@ -39,7 +39,7 @@ def grep(regexp): same tuples as comport() would do. """ for port, desc, hwid in comports(): - if re.search(regexp, port, re.I) or re.search(regexp, desc) or re.search(regexp, hwid): + if re.search(regexp, port, re.I) or re.search(regexp, desc, re.I) or re.search(regexp, hwid, re.I): yield port, desc, hwid |