summaryrefslogtreecommitdiff
path: root/test_maidenhead.py
diff options
context:
space:
mode:
authorJon Schlueter <jschlueter@navigationsolutions.com>2015-03-02 08:39:27 -0500
committerJon Schlueter <jschlueter@navigationsolutions.com>2015-03-02 08:58:50 -0500
commit584ae41d68de6c6ecd786175c54a6cf82f086f8d (patch)
tree897629eb177ace93b36c6aa68a8b3765178e8ea6 /test_maidenhead.py
parent38731e137dbbd6997ea9b416a536a7b706bc7c53 (diff)
downloadgpsd-584ae41d68de6c6ecd786175c54a6cf82f086f8d.tar.gz
pep8 cleanup for whitespace in test_maidenhead.py
Diffstat (limited to 'test_maidenhead.py')
-rwxr-xr-xtest_maidenhead.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/test_maidenhead.py b/test_maidenhead.py
index b8496ae8..bb239c34 100755
--- a/test_maidenhead.py
+++ b/test_maidenhead.py
@@ -11,15 +11,15 @@ import sys, gps.clienthelpers
errors = 0
for (lat, lon, maidenhead, location) in [
- (48.86471, 2.37305, "JN18eu", "Paris"),
+ (48.86471, 2.37305, "JN18eu", "Paris"),
(41.93498, 12.43652, "JN61fw", "Rome"),
- (39.9771, -75.1685, "FM29jx", "Philadelphia"),
+ (39.9771, -75.1685, "FM29jx", "Philadelphia"),
(-23.4028, -50.9766, "GG46mo", "Sao Paulo"),
- ]:
+]:
converted = gps.clienthelpers.maidenhead(lat, lon)
if converted != maidenhead:
print >>sys.stderr, "maidenhead test: from %s %s (%s) expected %s got %s" \
- % (lat, lon, location, maidenhead, converted)
+ % (lat, lon, location, maidenhead, converted)
errors += 1
else:
print "%s OK" % location
@@ -28,4 +28,3 @@ if errors:
sys.exit(1)
else:
sys.exit(0)
-