summaryrefslogtreecommitdiff
path: root/zerk
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-11-14 18:50:45 -0800
committerGary E. Miller <gem@rellim.com>2018-11-14 18:50:45 -0800
commit2e272d7d23b4ec1204247808c76910784bc86691 (patch)
tree8644b9951e28cb2236b3bd0e457221137cc51728 /zerk
parent8e255687c1b1ebe9cdab2d7207f397a5f82fbcb8 (diff)
downloadgpsd-2e272d7d23b4ec1204247808c76910784bc86691.tar.gz
zerk: Python 3 fix., import gps.misc, soon to be used.
Diffstat (limited to 'zerk')
-rwxr-xr-xzerk3
1 files changed, 2 insertions, 1 deletions
diff --git a/zerk b/zerk
index 1e310ca1..1ae00ef0 100755
--- a/zerk
+++ b/zerk
@@ -38,6 +38,7 @@ from __future__ import absolute_import, print_function, division
import binascii # for binascii.hexlify()
import getopt # for getopt.getopt(), to parse CLI options
+import gps.misc # for polybyte() polystr()
import hashlib # for hashlib.sha1
import os # for os.environ
import socket # for socket.error
@@ -900,7 +901,7 @@ class greis(object):
# Got newline or linefeed
# GREIS terminates messages on <CR> or <LF>
# Done, got a full message
- if b'{"class":"ERROR"' in comment:
+ if '{"class":"ERROR"' in comment:
# always print gpsd errors
print(comment)
elif VERB_DECODE <= opts['verbosity']: