diff options
author | Gary E. Miller <gem@rellim.com> | 2018-09-21 13:13:21 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-09-21 13:13:21 -0700 |
commit | 83db5dd843b70af349c3992e2e50c7719f749061 (patch) | |
tree | bc1098c9132ac361f43d87d5d9c5de2d639f30bc /xgps | |
parent | cc6737b70adcc209cd020054f585dd5f5562545d (diff) | |
download | gpsd-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-x | xgps | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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) |