diff python/moving.py @ 675:ab3fdff42624

corrected old format for Point.__str__
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 26 May 2015 23:55:22 +0200
parents 01b89182891a
children da1352b89d02
line wrap: on
line diff
--- a/python/moving.py	Tue May 26 18:16:51 2015 +0200
+++ b/python/moving.py	Tue May 26 23:55:22 2015 +0200
@@ -168,7 +168,7 @@
         self.y = y
 
     def __str__(self):
-        return '(%f,%f)'%(self.x,self.y)
+        return '({:f},{:f})'.format(self.x,self.y)
 
     def __repr__(self):
         return self.__str__()