Skip to content

Commit b0b65cd

Browse files
committed
Also implement __repr__ for units.
1 parent c0374d8 commit b0b65cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sc2reader/data/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ def __init__(self, unit_id):
250250
def __str__(self):
251251
return "{} [{:X}]".format(self.name, self.id)
252252

253+
def __repr__(self):
254+
return str(self)
255+
253256
class Ability(object):
254257
pass
255258

0 commit comments

Comments
 (0)