From 0241ee605e57eb12f429581b1cfa0f0d170dc3eb Mon Sep 17 00:00:00 2001 From: cliechti Date: Thu, 17 Oct 2013 14:44:59 +0000 Subject: 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 --- serial/tools/list_ports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'serial') 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 -- cgit v1.2.1