diff options
author | Gary E. Miller <gem@rellim.com> | 2018-11-14 18:50:45 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-11-14 18:50:45 -0800 |
commit | 2e272d7d23b4ec1204247808c76910784bc86691 (patch) | |
tree | 8644b9951e28cb2236b3bd0e457221137cc51728 /zerk | |
parent | 8e255687c1b1ebe9cdab2d7207f397a5f82fbcb8 (diff) | |
download | gpsd-2e272d7d23b4ec1204247808c76910784bc86691.tar.gz |
zerk: Python 3 fix., import gps.misc, soon to be used.
Diffstat (limited to 'zerk')
-rwxr-xr-x | zerk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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']: |