summaryrefslogtreecommitdiff
path: root/xgps
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-09-21 13:13:21 -0700
committerGary E. Miller <gem@rellim.com>2018-09-21 13:13:21 -0700
commit83db5dd843b70af349c3992e2e50c7719f749061 (patch)
treebc1098c9132ac361f43d87d5d9c5de2d639f30bc /xgps
parentcc6737b70adcc209cd020054f585dd5f5562545d (diff)
downloadgpsd-83db5dd843b70af349c3992e2e50c7719f749061.tar.gz
xpgs: more pylint tweaks. Pylint picky about name reuse.
Also wants all class variables defined in __init__.
Diffstat (limited to 'xgps')
-rwxr-xr-xxgps9
1 files changed, 6 insertions, 3 deletions
diff --git a/xgps b/xgps
index 0a68e031..654674f2 100755
--- a/xgps
+++ b/xgps
@@ -622,6 +622,9 @@ class Base(object):
self.saved_mode = -1
self.ais_latch = False
self.noise_latch = False
+ self.last_transition = 0.0
+ self.daemon = None
+ self.device = None
self.window = Gtk.Window(Gtk.WindowType.TOPLEVEL)
if not self.window.get_display():
@@ -1047,10 +1050,10 @@ class Base(object):
# I/O monitoring and gtk housekeeping
- def watch(self, daemon, device):
+ def watch(self, daem, dev):
"Set up monitoring of a daemon instance."
- self.daemon = daemon
- self.device = device
+ self.daemon = daem
+ self.device = dev
GObject.io_add_watch(daemon.sock, GObject.IO_IN, self.handle_response)
GObject.io_add_watch(daemon.sock, GObject.IO_ERR, self.handle_hangup)
GObject.io_add_watch(daemon.sock, GObject.IO_HUP, self.handle_hangup)