Skip to content

Commit

Permalink
Merge pull request #15 from caternuson/vec2d_patch
Browse files Browse the repository at this point in the history
patch for Vec2D.__repr__
  • Loading branch information
ladyada committed Oct 21, 2019
2 parents 4642333 + e48222b commit af18c41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions adafruit_turtle.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ def __getnewargs__(self):
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."""
Expand Down

0 comments on commit af18c41

Please sign in to comment.