summaryrefslogtreecommitdiff
path: root/gps
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-15 09:32:26 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-15 09:32:26 -0500
commitc2243501cebbcd92e080fba6ee5fe372a9897f5a (patch)
tree094803ff8f055659a8365eb7539837319fa3515e /gps
parent180fb26501501742b8464e916a8ebad1fe34141f (diff)
downloadgpsd-c2243501cebbcd92e080fba6ee5fe372a9897f5a.tar.gz
Partial pylint cleanup. All regression tests pass, xgps works.
Diffstat (limited to 'gps')
-rw-r--r--gps/client.py4
-rw-r--r--gps/fake.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/gps/client.py b/gps/client.py
index 304fc87e..6c18dd07 100644
--- a/gps/client.py
+++ b/gps/client.py
@@ -43,7 +43,7 @@ class gpscommon:
msg = "getaddrinfo returns an empty list"
self.sock = None
for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
- af, socktype, proto, canonname, sa = res
+ af, socktype, proto, _canonname, sa = res
try:
self.sock = socket.socket(af, socktype, proto)
#if self.debuglevel > 0: print 'connect:', (host, port)
@@ -68,7 +68,7 @@ class gpscommon:
"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):
diff --git a/gps/fake.py b/gps/fake.py
index cfecbbea..ff6316f3 100644
--- a/gps/fake.py
+++ b/gps/fake.py
@@ -149,7 +149,7 @@ class TestLoad:
type_latch = None
commentlen = 0
while True:
- (plen, ptype, packet, counter) = getter.get(logfp.fileno())
+ (plen, ptype, packet, _counter) = getter.get(logfp.fileno())
if plen <= 0:
break
elif ptype == sniffer.COMMENT_PACKET:
@@ -159,7 +159,7 @@ class TestLoad:
# Change serial parameters
packet = packet[1:].strip()
try:
- (xx, baud, params) = packet.split()
+ (_xx, baud, params) = packet.split()
baud = int(baud)
if params[0] in ('7', '8'):
databits = int(params[0])