From 805302004cf79d262e5d4c54fb920b2549053257 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 1 Oct 2009 09:44:54 -0400 Subject: [PATCH] Added default values for the GPS.Coordinates constructor. --- src/GPS.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GPS.py b/src/GPS.py index 477dc9b..7939d34 100644 --- a/src/GPS.py +++ b/src/GPS.py @@ -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 -- 2.43.2