summaryrefslogtreecommitdiff
path: root/gps
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-06-20 14:51:04 -0700
committerGary E. Miller <gem@rellim.com>2018-06-20 14:51:04 -0700
commitdd9e96f99fd14bc373e85170b116bb236304211f (patch)
tree44227a2141c9d10f09ab27de2d7b12df3ba9ff46 /gps
parent04dcbe359fffecc19be47d9fa6843c181f5efb01 (diff)
downloadgpsd-dd9e96f99fd14bc373e85170b116bb236304211f.tar.gz
fake.py: Fix for PEP8
Diffstat (limited to 'gps')
-rw-r--r--gps/fake.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/gps/fake.py b/gps/fake.py
index b743db22..2a0ca934 100644
--- a/gps/fake.py
+++ b/gps/fake.py
@@ -297,8 +297,8 @@ class FakePTY(FakeGPS):
}
(self.fd, self.slave_fd) = pty.openpty()
self.byname = os.ttyname(self.slave_fd)
- os.chmod(self.byname, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP
- | stat.S_IWGRP | stat.S_IROTH | stat.S_IWOTH)
+ os.chmod(self.byname, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP |
+ stat.S_IWGRP | stat.S_IROTH | stat.S_IWOTH)
(iflag, oflag, cflag, lflag, ispeed, ospeed, cc) = termios.tcgetattr(
self.slave_fd)
cc[termios.VMIN] = 1
@@ -306,8 +306,8 @@ class FakePTY(FakeGPS):
cflag |= termios.CREAD | termios.CLOCAL
iflag = oflag = lflag = 0
iflag &= ~ (termios.PARMRK | termios.INPCK)
- cflag &= ~ (termios.CSIZE | termios.CSTOPB | termios.PARENB
- | termios.PARODD)
+ cflag &= ~ (termios.CSIZE | termios.CSTOPB | termios.PARENB |
+ termios.PARODD)
if databits == 7:
cflag |= termios.CS7
else:
@@ -728,9 +728,9 @@ class TestSession(object):
had_output = False
chosen = self.choose()
if isinstance(chosen, FakeGPS):
- if ((chosen.exhausted
- and (time.time() - chosen.exhausted > TEST_TIMEOUT)
- and chosen.byname in self.fakegpslist)):
+ if (((chosen.exhausted and
+ (time.time() - chosen.exhausted > TEST_TIMEOUT) and
+ chosen.byname in self.fakegpslist))):
sys.stderr.write(
"Test timed out: increase WRITE_PAD = %s\n"
% GetDelay(self.slow))
@@ -752,9 +752,9 @@ class TestSession(object):
if not chosen.valid & gps.PACKET_SET:
continue
self.reporter(chosen.bresponse)
- if ((chosen.data["class"] == "DEVICE"
- and chosen.data["activated"] == 0
- and chosen.data["path"] in self.fakegpslist)):
+ if ((chosen.data["class"] == "DEVICE" and
+ chosen.data["activated"] == 0 and
+ chosen.data["path"] in self.fakegpslist)):
self.gps_remove(chosen.data["path"])
self.progress(
"gpsfake: GPS %s removed (notification)\n"