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 | 2a4f674e18863dad7febe9a943749923f4fe74cd (patch) | |
tree | f45d3874c23cba62476328c20fc7e4642fb67e64 /serial/tools | |
parent | 64656e46b331bef4d023c8fabf2f18cb8988220d (diff) | |
download | pyserial-2a4f674e18863dad7febe9a943749923f4fe74cd.tar.gz |
ignore case in description and hwid too
git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@451 f19166aa-fa4f-0410-85c2-fa1106f25c8a
Diffstat (limited to 'serial/tools')
-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 52eb7a1..c115441 100644 --- a/serial/tools/list_ports.py +++ b/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 |