]> gitweb.michael.orlitzky.com - dead/census-tools.git/commitdiff
Added default values for the GPS.Coordinates constructor.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 1 Oct 2009 13:44:54 +0000 (09:44 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 1 Oct 2009 13:44:54 +0000 (09:44 -0400)
src/GPS.py

index 477dc9b93bb5e219cd01a30db73d0004eccf08fd..7939d343f50f75f2e822e9bef6888d6816f27f78 100644 (file)
@@ -1,6 +1,6 @@
 class Coordinates:
     """Represents a set of GPS coordinates (latitude/longitude)."""
     
-    def __init__(self):
-        self.latitude = 0
-        self.longitude = 0
+    def __init__(self, x=0, y=0):
+        self.longitude = x
+        self.latitude = y