Skip to content

Commit 51d53cb

Browse files
committed
change commander data type to str
1 parent 4e7f5fb commit 51d53cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sc2reader/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def __init__(self, pid, slot_data, detail_data, attribute_data):
201201
self.play_race = LOCALIZED_RACES.get(detail_data['race'], detail_data['race'])
202202

203203
#: The co-op commander the player picked
204-
self.commander = slot_data['commander']
204+
self.commander = slot_data['commander'].decode('utf8')
205205

206206
#: A reference to a :class:`~sc2reader.utils.Color` object representing the player's color
207207
self.color = utils.Color(**detail_data['color'])

0 commit comments

Comments
 (0)