diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2011-08-21 23:41:23 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2011-08-21 23:41:23 +0000 |
commit | 774f1b38c5c441a917174d66607767727144d8bb (patch) | |
tree | 95acd0ab4991dce123813c2d66e6cb42b82dcf12 | |
parent | 4339d9cfcb493b11d32a09c05890d58ed7eb3c8e (diff) | |
download | pyserial-774f1b38c5c441a917174d66607767727144d8bb.tar.gz |
make search case insensitive
git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@421 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 1eb0478..30d94c9 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) or re.search(regexp, desc) or re.search(regexp, hwid): + if re.search(regexp, port, re.I) or re.search(regexp, desc) or re.search(regexp, hwid): yield port, desc, hwid # test |