summaryrefslogtreecommitdiff
path: root/serial/serialposix.py
diff options
context:
space:
mode:
authorChris Liechti <cliechti@gmx.net>2017-05-05 03:26:51 +0200
committerChris Liechti <cliechti@gmx.net>2017-05-05 03:26:51 +0200
commit1c8dbee5afa2fd26a6d5cc13cfba9b62f9a44217 (patch)
treec16c1f5f1959f3967573763386ccfa9077387b2c /serial/serialposix.py
parentfc70fd7a401fd1b1aac70a97eeb65210fe50df83 (diff)
downloadpyserial-git-1c8dbee5afa2fd26a6d5cc13cfba9b62f9a44217.tar.gz
posix: fix syntax errror
Diffstat (limited to 'serial/serialposix.py')
-rw-r--r--serial/serialposix.py4
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