patch for Vec2D.__repr__
This commit is contained in:
parent
4642333ec1
commit
e48222b7b5
1 changed files with 1 additions and 2 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue