diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-22 10:57:31 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-22 10:57:31 -0500 |
commit | 18443a6dd2024836a9627497caabbbfe2dbdc100 (patch) | |
tree | fdd7069b2ea36a69a1228e6a43f34bfc94be32a3 /gpsprof | |
parent | 7a6b4a54afd520c9cf84cee3735f349efd40e129 (diff) | |
download | gpsd-18443a6dd2024836a9627497caabbbfe2dbdc100.tar.gz |
gpsprof: pylint cleanup. Live-tested.
Diffstat (limited to 'gpsprof')
-rwxr-xr-x | gpsprof | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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") |