diff options
author | Chris Liechti <cliechti@gmx.net> | 2017-05-05 03:26:51 +0200 |
---|---|---|
committer | Chris Liechti <cliechti@gmx.net> | 2017-05-05 03:26:51 +0200 |
commit | 1c8dbee5afa2fd26a6d5cc13cfba9b62f9a44217 (patch) | |
tree | c16c1f5f1959f3967573763386ccfa9077387b2c /serial/serialposix.py | |
parent | fc70fd7a401fd1b1aac70a97eeb65210fe50df83 (diff) | |
download | pyserial-git-1c8dbee5afa2fd26a6d5cc13cfba9b62f9a44217.tar.gz |
posix: fix syntax errror
Diffstat (limited to 'serial/serialposix.py')
-rw-r--r-- | serial/serialposix.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serial/serialposix.py b/serial/serialposix.py index dbc4c86..195ecd4 100644 --- a/serial/serialposix.py +++ b/serial/serialposix.py @@ -511,7 +511,7 @@ class Serial(SerialBase, PlatformSpecific): # this is for Python 2.x # ignore BlockingIOErrors and EINTR. all errors are shown # see also http://www.python.org/dev/peps/pep-3151/#select - if e[0] not in (errno.EAGAIN, errno.EALREADY, errno.EWOULDBLOCK, errno.EINPROGRESS, errno.EINTR)): + if e[0] not in (errno.EAGAIN, errno.EALREADY, errno.EWOULDBLOCK, errno.EINPROGRESS, errno.EINTR): raise SerialException('read failed: {}'.format(e)) if timeout.expired(): break @@ -571,7 +571,7 @@ class Serial(SerialBase, PlatformSpecific): # this is for Python 2.x # ignore BlockingIOErrors and EINTR. all errors are shown # see also http://www.python.org/dev/peps/pep-3151/#select - if e[0] not in (errno.EAGAIN, errno.EALREADY, errno.EWOULDBLOCK, errno.EINPROGRESS, errno.EINTR)): + if e[0] not in (errno.EAGAIN, errno.EALREADY, errno.EWOULDBLOCK, errno.EINPROGRESS, errno.EINTR): raise SerialException('write failed: {}'.format(e)) if not timeout.is_non_blocking and timeout.expired(): raise writeTimeoutError |