From 2e272d7d23b4ec1204247808c76910784bc86691 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Wed, 14 Nov 2018 18:50:45 -0800 Subject: zerk: Python 3 fix., import gps.misc, soon to be used. --- zerk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zerk') 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 or # 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']: -- cgit v1.2.1