summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-22 10:57:31 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-22 10:57:31 -0500
commit18443a6dd2024836a9627497caabbbfe2dbdc100 (patch)
treefdd7069b2ea36a69a1228e6a43f34bfc94be32a3 /gpsprof
parent7a6b4a54afd520c9cf84cee3735f349efd40e129 (diff)
downloadgpsd-18443a6dd2024836a9627497caabbbfe2dbdc100.tar.gz
gpsprof: pylint cleanup. Live-tested.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof20
1 files changed, 10 insertions, 10 deletions
diff --git a/gpsprof b/gpsprof
index 73063d15..963eea6c 100755
--- a/gpsprof
+++ b/gpsprof
@@ -415,28 +415,28 @@ if __name__ == '__main__':
logfp = None
redo = False
for (switch, val) in options:
- if (switch == '-f'):
+ if switch == '-f':
plotmode = val
- elif (switch == '-m'):
+ elif switch == '-m':
threshold = int(val)
- elif (switch == '-n'):
+ elif switch == '-n':
if val[-1] == 'h':
await = int(val[:-1]) * 360
else:
await = int(val)
- elif (switch == '-t'):
+ elif switch == '-t':
title = val
- elif (switch == '-T'):
+ elif switch == '-T':
terminal = val
- elif (switch == '-d'):
+ elif switch == '-d':
dumpfile = val
- elif (switch == '-l'):
+ elif switch == '-l':
logfp = open(val, "w")
- elif (switch == '-r'):
+ elif switch == '-r':
redo = True
- elif (switch == '-D'):
+ elif switch == '-D':
verbose = int(val)
- elif (switch == '-h'):
+ elif switch == '-h':
sys.stderr.write(
"usage: gpsprof [-h] [-D debuglevel] [-m threshold] [-n samplecount] [-d]\n"
+ "\t[-f {" + "|".join(map(lambda x: x.name, formatters)) + "}] [-s speed] [-t title] [-T terminal] [server[:port[:device]]]\n")