summaryrefslogtreecommitdiff
path: root/gps
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2017-07-26 18:25:51 -0700
committerGary E. Miller <gem@rellim.com>2017-07-26 18:25:51 -0700
commit3903fcd20a86328af50d6947d800ce1a551c7771 (patch)
tree751b16aa8e182924253742649e4a1dbda0bccaff /gps
parenta96562dd83df5e427334976c7751b475244ff42a (diff)
downloadgpsd-3903fcd20a86328af50d6947d800ce1a551c7771.tar.gz
fake.py: Fix pylint complaint about a function override.
pylint complains when a class function is overridden with a function taking different arguments.
Diffstat (limited to 'gps')
-rw-r--r--gps/fake.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gps/fake.py b/gps/fake.py
index f9ed4599..8fa5111c 100644
--- a/gps/fake.py
+++ b/gps/fake.py
@@ -466,7 +466,8 @@ class SubprogramInstance(object):
self.returncode = None
self.env = None
- def spawn(self, program, options, background=False, prefix="", env=None):
+ def spawn_sub(self, program, options, background=False, prefix="",
+ env=None):
"Spawn a subprogram instance."
spawncmd = None
@@ -551,8 +552,7 @@ class DaemonInstance(SubprogramInstance):
# Use 'Gp' as the prefix to avoid colliding with 'GPSD'.
shmkey = '0x4770%.04X' % int(port)
env = {'GPSD_SHM_KEY': shmkey}
- super(DaemonInstance, self).spawn('gpsd', opts, background, prefix,
- env)
+ self.spawn_sub('gpsd', opts, background, prefix, env)
def wait_ready(self):
"Wait for the daemon to create the control socket."