diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-04 10:55:24 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-04 10:55:24 -0500 |
commit | 85ec1417a73aa27ba2f11d57120fcedac1dce7c7 (patch) | |
tree | 070ddf0e162662515c1b15e6c059807169ff2e9f | |
parent | 51f1ff0ab2f1fcfa2f5867cf1da92722a5e761e6 (diff) | |
download | gpsd-85ec1417a73aa27ba2f11d57120fcedac1dce7c7.tar.gz |
Remove redundant variable.
-rw-r--r-- | gps/fake.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gps/fake.py b/gps/fake.py index ec843d77..ceba1ef2 100644 --- a/gps/fake.py +++ b/gps/fake.py @@ -109,7 +109,6 @@ class TestLoad: self.name = logfp.name self.logfp = logfp self.predump = predump - self.logfile = logfp.name self.type = None self.sourcetype = "pty" self.serial = None @@ -145,7 +144,7 @@ class TestLoad: raise ValueError except (ValueError, IndexError): raise TestLoadError("bad serial-parameter spec in %s"%\ - logfp.name) + self.name) self.serial = (baud, databits, parity, stopbits) elif "Transport: UDP" in packet: self.sourcetype = "UDP" @@ -159,7 +158,7 @@ class TestLoad: self.delay = float(delay) except ValueError: raise TestLoadError("bad Delay-Cookie line in %s"%\ - logfp.name) + self.name) self.resplit = True else: if type_latch is None: @@ -168,7 +167,7 @@ class TestLoad: print repr(packet) if not packet: raise TestLoadError("zero-length packet from %s"%\ - logfp.name) + self.name) self.sentences.append(packet) # Look at the first packet to grok the GPS type self.textual = (type_latch == sniffer.NMEA_PACKET) |