Skip to content

Commit 4b3bd9b

Browse files
committed
Merge pull request #183 from StoicLoofah/decode_upgrade_type_name
decoding upgrade_type_name so that it reads as a string not bytes in python 3
2 parents 722ae4f + c5d22d6 commit 4b3bd9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sc2reader/events/tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def __init__(self, frames, data, build):
442442
self.player = None
443443

444444
#: The name of the upgrade
445-
self.upgrade_type_name = data[1]
445+
self.upgrade_type_name = data[1].decode('utf8')
446446

447447
#: The number of times this upgrade as been researched
448448
self.count = data[2]

0 commit comments

Comments
 (0)