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

Commit 5b5b002

Browse files
committed
add __repr__ for Board class
1 parent 766c2da commit 5b5b002

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

robot/board.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ def close(self):
155155
"""
156156
self.socket.detach()
157157

158+
def __repr__(self):
159+
return "<{}>".format(self.__str__())
160+
158161
def __str__(self):
159162
return "{} - {}".format(self.__name__, self.serial)
160163

0 commit comments

Comments
 (0)