summaryrefslogtreecommitdiff
path: root/gps
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-06-26 20:01:16 -0700
committerGary E. Miller <gem@rellim.com>2018-06-26 20:01:45 -0700
commite3397eadbb8c5137eef945c3337364521ae05736 (patch)
tree48c6189d201b6f9900deb5aaf37a4614308354c9 /gps
parent7a57d22d227e1deb3ad79f9793e4147e9a19e2f3 (diff)
downloadgpsd-e3397eadbb8c5137eef945c3337364521ae05736.tar.gz
gps/client.py: Add back in missing defaults.
The reconnect patch lost host and port.
Diffstat (limited to 'gps')
-rw-r--r--gps/client.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gps/client.py b/gps/client.py
index af08cd24..70c83a44 100644
--- a/gps/client.py
+++ b/gps/client.py
@@ -20,6 +20,9 @@ GPSD_PORT = "2947"
class gpscommon(object):
"Isolate socket handling and buffering from the protocol interpretation."
+ host = "127.0.0.1"
+ port = GPSD_PORT
+
def __init__(self, host="127.0.0.1", port=GPSD_PORT, verbose=0,
should_reconnect=False):
self.sock = None # in case we blow up in connect