Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change commander data type to str
  • Loading branch information
StoicLoofah committed Apr 6, 2018
commit 51d53cb71439cc368bb898ce4933c397cb4d1238
2 changes: 1 addition & 1 deletion sc2reader/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def __init__(self, pid, slot_data, detail_data, attribute_data):
self.play_race = LOCALIZED_RACES.get(detail_data['race'], detail_data['race'])

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

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