Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.

Commit ac2266c

Browse files
committed
call str() instead of __str__()
1 parent 99cb3b3 commit ac2266c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

robot/board.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def close(self):
156156
self.socket.detach()
157157

158158
def __repr__(self):
159-
return "<{}>".format(self.__str__())
159+
return "<{}>".format(str(self))
160160

161161
def __str__(self):
162162
return "{} - {}".format(self.__name__, self.serial)

robot/markers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def spherical(self) -> SphericalCoord:
169169
return SphericalCoord(*self._raw_data['spherical'])
170170

171171
def __repr__(self):
172-
return "<robot.markers.{} >".format(self.__str__())
172+
return "<robot.markers.{} >".format(str(self))
173173

174174
def __str__(self):
175175
bearing = self.spherical.rot_y_degrees

0 commit comments

Comments
 (0)