changeset 39:e47168f6b694

corrected printing bug
author Nicolas Saunier <nico@confins.net>
date Tue, 18 May 2010 17:53:59 -0400
parents 0d321c23d337
children 9f16aee24b7e
files python/moving.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/python/moving.py	Tue May 18 17:35:09 2010 -0400
+++ b/python/moving.py	Tue May 18 17:53:59 2010 -0400
@@ -173,7 +173,7 @@
                           [float(n) for n in line2.split(' ')]]
 
     def __str__(self):
-        return ' '.join(map(utils.printPoint, self.positions[0], self.positions[1]))
+        return ' '.join([self.__getitem__(i).__str__() for i in xrange(self.length())])
 
     def __getitem__(self, i):
         return Point(self.positions[0][i], self.positions[1][i])