From 18443a6dd2024836a9627497caabbbfe2dbdc100 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 22 Feb 2015 10:57:31 -0500 Subject: gpsprof: pylint cleanup. Live-tested. --- gpsprof | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'gpsprof') 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") -- cgit v1.2.1