summaryrefslogtreecommitdiff
path: root/pyserial/serial/tools
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2011-12-29 02:22:17 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2011-12-29 02:22:17 +0000
commit4a60134d55f01a5956ae7eb3f16436680a3d159f (patch)
tree5af7430fb50080198da51de7edc0b680d34f2074 /pyserial/serial/tools
parentc648da9a36bd47756bb43ba61992c2c83cb508f4 (diff)
downloadpyserial-git-4a60134d55f01a5956ae7eb3f16436680a3d159f.tar.gz
update for BSD: list_ports and device function
Diffstat (limited to 'pyserial/serial/tools')
-rw-r--r--pyserial/serial/tools/list_ports_posix.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pyserial/serial/tools/list_ports_posix.py b/pyserial/serial/tools/list_ports_posix.py
index d5b3e42..7913d81 100644
--- a/pyserial/serial/tools/list_ports_posix.py
+++ b/pyserial/serial/tools/list_ports_posix.py
@@ -127,14 +127,13 @@ elif plat == 'cygwin': # cygwin/win32
devices = glob.glob('/dev/com*')
return [(d, d, d) for d in devices]
-elif plat == 'openbsd3': # BSD
+elif plat[:7] == 'openbsd': # OpenBSD
def comports():
- devices = glob.glob('/dev/ttyp*')
+ devices = glob.glob('/dev/cua*')
return [(d, d, d) for d in devices]
elif plat[:3] == 'bsd' or \
- plat[:7] == 'freebsd' or \
- plat[:7] == 'openbsd': # BSD
+ plat[:7] == 'freebsd':
def comports():
devices = glob.glob('/dev/cuad*')