summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-15 15:42:05 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-15 15:42:05 -0500
commitb82f73479ab18326f03d40fc00398090ca849d99 (patch)
tree70cc5fb8ed40c649def7daa3c229660387eb4e31 /gpsprof
parent769a40ca93ccab4ed630d938bd8783827a26eab1 (diff)
downloadgpsd-b82f73479ab18326f03d40fc00398090ca849d99.tar.gz
More splint and pylint cleanups.
All regression tests pass with pps=tru or pps=false, PPS is live.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof20
1 files changed, 10 insertions, 10 deletions
diff --git a/gpsprof b/gpsprof
index da34305a..b56e775a 100755
--- a/gpsprof
+++ b/gpsprof
@@ -15,7 +15,7 @@ class Baton:
self.stream = sys.stderr
self.stream.write(prompt + "...")
if os.isatty(self.stream.fileno()):
- self.stream.write(" \010")
+ self.stream.write(" \b")
self.stream.flush()
self.count = 0
self.endmsg = endmsg
@@ -29,7 +29,7 @@ class Baton:
self.stream.write(ch)
elif os.isatty(self.stream.fileno()):
self.stream.write("-/|\\"[self.count % 4])
- self.stream.write("\010")
+ self.stream.write("\b")
self.count = self.count + 1
self.stream.flush()
return
@@ -89,8 +89,8 @@ class plotter:
sys.exit(1)
if self.session.data["class"] == "DEVICES":
if len(self.session.data["devices"]) !=1 and not device:
- sys.stderr.write(" ERROR: multiple devices connected, you must explicitly specify the device.\n")
- sys.exit(1)
+ sys.stderr.write(" ERROR: multiple devices connected, you must explicitly specify the device.\n")
+ sys.exit(1)
for i in range(len(self.session.data["devices"])):
self.device = copy.copy(self.session.data["devices"][i])
if self.device['path'] == device:
@@ -177,14 +177,14 @@ class spaceplot(plotter):
alt_fixes = []
lon_max = -9999
for i in range(len(self.recentered)):
- (lat, lon) = self.recentered[i][:2]
- (raw1, raw2, alt) = self.fixes[i]
+ (_lat, lon) = self.recentered[i][:2]
+ (_raw1, _raw2, alt) = self.fixes[i]
if not gps.isnan(alt):
- alt_sum += alt
- alt_fixes.append( alt)
- alt_num += 1
+ alt_sum += alt
+ alt_fixes.append( alt)
+ alt_num += 1
if lon > lon_max :
- lon_max = lon
+ lon_max = lon
if alt_num == 0:
alt_avg = gps.NaN
alt_ep = gps.NaN