summaryrefslogtreecommitdiff
path: root/gps/client.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-08-23 13:39:55 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-08-23 13:39:55 -0400
commit316a9154bb9286a95d215a07f0525091f0e13969 (patch)
treefcf492bad6582b0e7ee23b53e12b48b9179dcbb9 /gps/client.py
parent8d402ab470318a9a69ab62d8923ac0456b889ebc (diff)
downloadgpsd-316a9154bb9286a95d215a07f0525091f0e13969.tar.gz
gps library code is pychecker clean. All regression tests pass.
Diffstat (limited to 'gps/client.py')
-rw-r--r--gps/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gps/client.py b/gps/client.py
index fa8bfa38..f4c1e7cb 100644
--- a/gps/client.py
+++ b/gps/client.py
@@ -144,7 +144,7 @@ class gpsjson(gpscommon):
if hasattr(self.data, "satellites"):
self.data.satellites = map(lambda x: dictwrapper(x), self.data.satellites)
- def stream(self, flags=0, outfile=None):
+ def stream(self, flags=0, devpath=None):
"Control streaming reports from the daemon,"
if flags & WATCH_DISABLE:
arg = '?WATCH={"enable":false'
@@ -175,7 +175,7 @@ class gpsjson(gpscommon):
if flags & WATCH_TIMING:
arg += ',"scaled":true'
if flags & WATCH_DEVICE:
- arg += ',"device":"%s"' % outfile
+ arg += ',"device":"%s"' % devpath
return self.send(arg + "}")
class dictwrapper: