Skip to content

Commit 096b936

Browse files
committed
Better team string formatting.
1 parent 93c4275 commit 096b936

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sc2reader/objects.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ def hash(self):
5656
return hashlib.sha256(raw_hash).hexdigest()
5757

5858
def __str__(self):
59-
return "Team {0}".format(self.number)
59+
return "Team {0}: {1}".format(self.number, ", ".join([str(p) for p in self.players]))
60+
61+
def __repr__(self):
62+
return str(self)
6063

6164

6265
class Attribute(object):

0 commit comments

Comments
 (0)