Skip to content

Commit 0fc2f6d

Browse files
committed
Fix an issue with double encoding the map_hash.
Readers shouldn't interpret the data as it is read. It should be reported in as raw a form as is reasonable.
1 parent 0d758be commit 0fc2f6d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sc2reader/readers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ def __call__(self, data, replay):
5151
map_data = list()
5252
while data.read(4) == 's2ma':
5353
gateway = data.read(4).strip('\00 ').lower()
54-
# There must be a better way to get this little endian
55-
map_hash = data.read(32).encode('hex')
54+
map_hash = data.read(32)
5655
map_data.append(MapData(gateway,map_hash))
5756

5857
# Return the extracted information inside an AttributeDict.

0 commit comments

Comments
 (0)