Skip to content

Commit 080e09d

Browse files
authored
Merge pull request #53 from cclauss/patch-3
StringIO—> BytesIO when converting map to PIL image
2 parents 38c90ef + 106cca8 commit 080e09d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sc2reader/engine/plugins/creeptracker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import absolute_import, print_function, unicode_literals, division
33

4+
from io import BytesIO
5+
46
try:
57
from sets import Set
68
except ImportError:
@@ -113,7 +115,7 @@ def __init__(self,replay):
113115
#Get map information
114116
replayMap = replay.map
115117
# extract image from replay package
116-
mapsio = StringIO(replayMap.minimap)
118+
mapsio = BytesIO(replayMap.minimap)
117119
im = PIL_open(mapsio)
118120
##remove black box around minimap
119121

0 commit comments

Comments
 (0)