summaryrefslogtreecommitdiff
path: root/serial/serialposix.py
diff options
context:
space:
mode:
authorChris Liechti <cliechti@gmx.net>2016-02-09 23:30:37 +0100
committerChris Liechti <cliechti@gmx.net>2016-02-09 23:30:37 +0100
commit92df95abf13c7004bc4b1904806d13c682969076 (patch)
treefcdae78a03fff1e876c9dd9fa688497d0298e50d /serial/serialposix.py
parent894d0ddf99336ef9ea23c333feac962b0005573b (diff)
downloadpyserial-git-92df95abf13c7004bc4b1904806d13c682969076.tar.gz
style: some of the suggestions from flake8
Diffstat (limited to 'serial/serialposix.py')
-rw-r--r--serial/serialposix.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/serial/serialposix.py b/serial/serialposix.py
index 44cadf2..7e432c7 100644
--- a/serial/serialposix.py
+++ b/serial/serialposix.py
@@ -492,7 +492,9 @@ class Serial(SerialBase, PlatformSpecific):
# Disconnected devices, at least on Linux, show the
# behavior that they are always ready to read immediately
# but reading returns nothing.
- raise SerialException('device reports readiness to read but returned no data (device disconnected or multiple access on port?)')
+ raise SerialException(
+ 'device reports readiness to read but returned no data '
+ '(device disconnected or multiple access on port?)')
read.extend(buf)
if timeout is not None:
timeout -= time.time() - start_time