diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2016-03-24 00:28:25 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2016-03-24 00:28:25 -0400 |
commit | ffbdd9205ec9cea0373f84d643e05a47e691ae37 (patch) | |
tree | 3a3e892f64e9c6a7fee761aa42fabede9824ed12 /gps/fake.py | |
parent | ff03ce2b150b6944b4a0e2363ccd7e72c16a9599 (diff) | |
download | gpsd-ffbdd9205ec9cea0373f84d643e05a47e691ae37.tar.gz |
Fix Python 3 compatibility.
Diffstat (limited to 'gps/fake.py')
-rw-r--r-- | gps/fake.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gps/fake.py b/gps/fake.py index 75aea950..15fc683c 100644 --- a/gps/fake.py +++ b/gps/fake.py @@ -228,7 +228,7 @@ class FakeGPS: def write(self, line): "Throw an error if this superclass is ever instantiated." - raise ValueError, line + raise ValueError(line) def feed(self): "Feed a line from the contents of the GPS log to the daemon." @@ -682,7 +682,7 @@ class TestSession: if isinstance(chosen, FakeGPS): if chosen.exhausted and (time.time() - chosen.exhausted > TEST_TIMEOUT) and chosen.byname in self.fakegpslist: sys.stderr.write("Test timed out: increase WRITE_PAD = %s\n" % GetDelay(self.slow)) - raise SystemExit, 1 + raise SystemExit(1) elif not chosen.go_predicate(chosen.index, chosen): if chosen.exhausted == 0: chosen.exhausted = time.time() |