summaryrefslogtreecommitdiff
path: root/gpscat
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-22 10:52:12 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-22 10:52:12 -0500
commita6b99381c7aa009ee449a76f31312eae0b87d7f1 (patch)
tree9be83c843b2510ad7f9818dfafb89a4d92971aac /gpscat
parent9087ef9f3d930fb26861d042e8906120799954a6 (diff)
downloadgpsd-a6b99381c7aa009ee449a76f31312eae0b87d7f1.tar.gz
gpscat: pylint cleanup. Works in live testing.
Diffstat (limited to 'gpscat')
-rwxr-xr-xgpscat4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpscat b/gpscat
index 99808dab..4dd8f462 100755
--- a/gpscat
+++ b/gpscat
@@ -66,7 +66,7 @@ if __name__ == '__main__':
printusage()
raise SystemExit, 0
- if (len(arguments) != 1):
+ if len(arguments) != 1:
printusage()
raise SystemExit, 1
@@ -123,7 +123,7 @@ if __name__ == '__main__':
if length == 0:
break
if typeflag:
- sys.stdout.write(`ptype` + " (" + repr(length) + "@" + repr(counter-length) + "): " + hexdump(packet))
+ sys.stdout.write(repr(ptype) + " (" + repr(length) + "@" + repr(counter-length) + "): " + hexdump(packet))
sys.stdout.write("\n")
else:
sys.stdout.write(hexdump(packet) + "\n")