diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-10-28 16:44:40 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-10-28 16:44:40 -0400 |
commit | 73af3c54ab43ee43698d57250210d873c3b5567d (patch) | |
tree | e27fce05cb485247b8357e2611b65edd5c2dd738 /gps | |
parent | 707dfbcc87290994bac11f4f54ebe52f26bc5b2c (diff) | |
download | gpsd-73af3c54ab43ee43698d57250210d873c3b5567d.tar.gz |
More Python sanity checking.
Diffstat (limited to 'gps')
-rw-r--r-- | gps/client.py | 2 | ||||
-rw-r--r-- | gps/fake.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gps/client.py b/gps/client.py index 1ef2d02c..43a8be47 100644 --- a/gps/client.py +++ b/gps/client.py @@ -143,7 +143,7 @@ class gpsjson(gpscommon): # Should be done for any other array-valued subobjects, too. # This particular logic can fire on SKY or RTCM2 objects. if hasattr(self.data, "satellites"): - self.data.satellites = map(lambda x: dictwrapper(x), self.data.satellites) + self.data.satellites = map(dictwrapper, self.data.satellites) def stream(self, flags=0, devpath=None): "Control streaming reports from the daemon," diff --git a/gps/fake.py b/gps/fake.py index 99d73484..1fe71d34 100644 --- a/gps/fake.py +++ b/gps/fake.py @@ -102,7 +102,7 @@ class TestLoad: def __init__(self, logfp, predump=False): self.sentences = [] # This is the interesting part if type(logfp) == type(""): - logfp = open(logfp, "r"); + logfp = open(logfp, "r") self.name = logfp.name self.logfp = logfp self.predump = predump @@ -148,7 +148,7 @@ class TestLoad: if type_latch is None: type_latch = ptype if self.predump: - print `packet` + print repr(packet) if not packet: raise TestLoadError("zero-length packet from %s"%\ logfp.name) |