Skip to content

Commit 1c8dbee

Browse files
committed
posix: fix syntax errror
1 parent fc70fd7 commit 1c8dbee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

serial/serialposix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def read(self, size=1):
511511
# this is for Python 2.x
512512
# ignore BlockingIOErrors and EINTR. all errors are shown
513513
# see also http://www.python.org/dev/peps/pep-3151/#select
514-
if e[0] not in (errno.EAGAIN, errno.EALREADY, errno.EWOULDBLOCK, errno.EINPROGRESS, errno.EINTR)):
514+
if e[0] not in (errno.EAGAIN, errno.EALREADY, errno.EWOULDBLOCK, errno.EINPROGRESS, errno.EINTR):
515515
raise SerialException('read failed: {}'.format(e))
516516
if timeout.expired():
517517
break
@@ -571,7 +571,7 @@ def write(self, data):
571571
# this is for Python 2.x
572572
# ignore BlockingIOErrors and EINTR. all errors are shown
573573
# see also http://www.python.org/dev/peps/pep-3151/#select
574-
if e[0] not in (errno.EAGAIN, errno.EALREADY, errno.EWOULDBLOCK, errno.EINPROGRESS, errno.EINTR)):
574+
if e[0] not in (errno.EAGAIN, errno.EALREADY, errno.EWOULDBLOCK, errno.EINPROGRESS, errno.EINTR):
575575
raise SerialException('write failed: {}'.format(e))
576576
if not timeout.is_non_blocking and timeout.expired():
577577
raise writeTimeoutError

0 commit comments

Comments
 (0)