From ffbdd9205ec9cea0373f84d643e05a47e691ae37 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 24 Mar 2016 00:28:25 -0400 Subject: Fix Python 3 compatibility. --- gps/fake.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gps/fake.py') 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() -- cgit v1.2.1