summaryrefslogtreecommitdiff
path: root/gpsfake
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2017-07-26 17:39:51 -0700
committerGary E. Miller <gem@rellim.com>2017-07-26 17:39:51 -0700
commit46824c7dbca8f7a6ce5d417fa55fc42c89bc2810 (patch)
tree3ac19d013ea71bf5601ad66a17d594b5fd46a48b /gpsfake
parent94c51f4aa809c43e50756e7396bcc75d3973067b (diff)
downloadgpsd-46824c7dbca8f7a6ce5d417fa55fc42c89bc2810.tar.gz
gpsfake: fix two pylint complaints of variable type changing.
Diffstat (limited to 'gpsfake')
-rwxr-xr-xgpsfake4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsfake b/gpsfake
index 932a7ffb..8382d988 100755
--- a/gpsfake
+++ b/gpsfake
@@ -121,7 +121,7 @@ if __name__ == '__main__':
port = None
progress = False
- cycle = 0
+ cycle = 0.0
monitor = ""
speed = 4800
linedump = False
@@ -207,7 +207,7 @@ if __name__ == '__main__':
# Don't allocate a private port when cycling logs for client testing.
if port is None and not pipe:
- port = gps.GPSD_PORT
+ port = int(gps.GPSD_PORT)
test = gpsfake.TestSession(prefix=monitor, port=port, options=doptions,
tcp=tcp, udp=udp, verbose=verbose,