summaryrefslogtreecommitdiff
path: root/gpscat
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2017-07-01 15:59:16 -0700
committerGary E. Miller <gem@rellim.com>2017-07-01 15:59:16 -0700
commit6f9507d40c0d9839ecfd47e99684edb773eeedc7 (patch)
treee9d974bce91803d5c10b1fc4abdff44b48c9421a /gpscat
parentc525588f98776f32fb5fceba7127fe6dbede950b (diff)
downloadgpsd-6f9507d40c0d9839ecfd47e99684edb773eeedc7.tar.gz
gpscat: pep8 fixes
Diffstat (limited to 'gpscat')
-rwxr-xr-xgpscat4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpscat b/gpscat
index 6576a50e..037b57da 100755
--- a/gpscat
+++ b/gpscat
@@ -104,7 +104,7 @@ if __name__ == '__main__':
raise SystemExit(1)
if stopbits:
cflag &= ~termios.CSIZE
- cflag |= (termios.CS8, termios.CS7)[stopbits-1]
+ cflag |= (termios.CS8, termios.CS7)[stopbits - 1]
if parity:
if parity == 'N':
iflag &= ~termios.PARENB
@@ -139,7 +139,7 @@ if __name__ == '__main__':
break
if typeflag:
sys.stdout.write(repr(ptype) + " (" + repr(length)
- + "@" + repr(counter-length) + "): "
+ + "@" + repr(counter - length) + "): "
+ hexdump(packet))
sys.stdout.write("\n")
else: