summaryrefslogtreecommitdiff
path: root/serial/serialposix.py
diff options
context:
space:
mode:
authorChris Liechti <cliechti@gmx.net>2016-02-12 23:32:59 +0100
committerChris Liechti <cliechti@gmx.net>2016-02-12 23:32:59 +0100
commit9eaa40ce59b47229698d99bb8768a5d3384a37c0 (patch)
tree3a96357443e9ebecf2d187544e2105c1e2de510e /serial/serialposix.py
parent397cf4157ec520fd6d96d5743621b8b6001305fb (diff)
downloadpyserial-git-9eaa40ce59b47229698d99bb8768a5d3384a37c0.tar.gz
style: some of the suggestions from flake8 and pylint
Diffstat (limited to 'serial/serialposix.py')
-rw-r--r--serial/serialposix.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/serial/serialposix.py b/serial/serialposix.py
index 7e432c7..c920cbe 100644
--- a/serial/serialposix.py
+++ b/serial/serialposix.py
@@ -12,6 +12,7 @@
#
# references: http://www.easysw.com/~mike/serial/serial.html
+# pylint: disable=abstract-method
import errno
import fcntl
import os
@@ -436,9 +437,9 @@ class Serial(SerialBase, PlatformSpecific):
# activate settings
if force_update or [iflag, oflag, cflag, lflag, ispeed, ospeed, cc] != orig_attr:
termios.tcsetattr(
- self.fd,
- termios.TCSANOW,
- [iflag, oflag, cflag, lflag, ispeed, ospeed, cc])
+ self.fd,
+ termios.TCSANOW,
+ [iflag, oflag, cflag, lflag, ispeed, ospeed, cc])
# apply custom baud rate, if any
if custom_baud is not None: