Skip to content

Commit 5dbe62b

Browse files
committed
Adding StringIO import for Python3
1 parent 189dcea commit 5dbe62b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sc2reader/engine/plugins/creeptracker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
try:
55
from sets import Set
6-
except:
6+
except ImportError:
77
Set = set
88
from PIL.Image import open as PIL_open
99
from PIL.Image import ANTIALIAS
1010
try:
1111
from StringIO import StringIO
12-
except:
13-
pass
12+
except ImportError:
13+
from io import StringIO
1414
from collections import defaultdict
1515
from itertools import tee
1616

0 commit comments

Comments
 (0)