diff options
author | Fred Wright <fw@fwright.net> | 2016-03-27 01:09:14 -0700 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2016-03-27 04:44:57 -0400 |
commit | 8d7820fdc34eaa9296bac60d358d10e377f8ffab (patch) | |
tree | 8ab5e7fda4d17ceef5458697c570a66ae99d405b /gpsprof | |
parent | 6d0f17901b1736619ae7d74067fae58f1cbd747a (diff) | |
download | gpsd-8d7820fdc34eaa9296bac60d358d10e377f8ffab.tar.gz |
Fixes gpsprof to work with Python 2.6.
The dict-without-values construct as a set initializer doesn't
work in Python 2.6, though the usual set constructor does.
This is not a recent bug.
TESTED:
Verified that gpsprof now works in Python 2.6, 2.7, 3.3, 3.4, and 3.5,
at least in the TPV mode. Unable to test the PPS cases since gpsd
doesn't recognize my PPS source (but the syntax is identical).
Diffstat (limited to 'gpsprof')
-rwxr-xr-x | gpsprof | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -58,7 +58,7 @@ class plotter: def __init__(self): self.fixes = [] self.start_time = int(time.time()) - self.watch = {"TPV"} + self.watch = set(['TPV']) def whatami(self): "How do we identify this plotting run?" @@ -282,7 +282,7 @@ class timeplot(plotter): def __init__(self): plotter.__init__(self) - self.watch = {"PPS"} + self.watch = set(['PPS']) def sample(self): if self.session.data["class"] == "PPS": |