REFACTORING : Use the 'string operator' to write logfile
[wifihood] / wifiscanner / wifimap / gps.py
index 33f8643..b435bf2 100644 (file)
@@ -83,6 +83,10 @@ class GPSObject ( gobject.GObject ) :
         else :
             self.info = None, 0, 0, None, None, None, None
 
+    def __str__ ( self ) :
+        output = map( str , self.info )
+        return " ".join( output )
+
     def report ( self ) :
         return "%d gps" % self.ngps