diff options
author | Gary E. Miller <gem@rellim.com> | 2017-07-01 17:22:38 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2017-07-01 17:22:38 -0700 |
commit | fd13a53429f3ff1e4fc47e1dccfb89d3a622b93c (patch) | |
tree | 6c32ac2fa56fb31fbfbfd74819a503a4e623c43c /gps | |
parent | 56e4bb2b3a0e6f423463c0a103809d228fc78d79 (diff) | |
download | gpsd-fd13a53429f3ff1e4fc47e1dccfb89d3a622b93c.tar.gz |
client.py: pep8 fixes
Diffstat (limited to 'gps')
-rw-r--r-- | gps/client.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gps/client.py b/gps/client.py index 464ce689..c660d920 100644 --- a/gps/client.py +++ b/gps/client.py @@ -5,12 +5,17 @@ # Preserve this property! from __future__ import absolute_import, print_function, division -import time, socket, sys, select, json +import json +import select +import socket +import sys +import time from .misc import polystr, polybytes GPSD_PORT = "2947" + class gpscommon(object): "Isolate socket handling and buffering from the protocol interpretation." @@ -67,7 +72,8 @@ class gpscommon(object): "Return True if data is ready for the client." if self.linebuffer: return True - (winput, _woutput, _wexceptions) = select.select((self.sock,), (), (), timeout) + (winput, _woutput, _wexceptions) = select.select( + (self.sock,), (), (), timeout) return winput != [] def read(self): @@ -162,7 +168,8 @@ class gpsjson(object): # Should be done for any other array-valued subobjects, too. # This particular logic can fire on SKY or RTCM2 objects. if hasattr(self.data, "satellites"): - self.data.satellites = [dictwrapper(x) for x in self.data.satellites] + self.data.satellites = [dictwrapper(x) + for x in self.data.satellites] def stream(self, flags=0, devpath=None): "Control streaming reports from the daemon," |