patch for Vec2D.__repr__

This commit is contained in:
caternuson 2019-10-20 18:57:20 -07:00
parent 4642333ec1
commit e48222b7b5

View file

@ -130,8 +130,7 @@ class Vec2D(tuple):
return (self[0], self[1])
def __repr__(self):
return "(%.2f,%.2f)" % self
return "({:.2f},{:.2f})".format(self[0], self[1])
class turtle(object):
"""A Turtle that can be given commands to draw."""