Skip to content

Commit 9f33913

Browse files
committed
Force windows to read SC2Replay files in binary mode.
1 parent 3d873b5 commit 9f33913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sc2reader/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def read(self, location, **user_options):
8484
for location in files:
8585
if options.verbose: print "Reading: %s" % location
8686

87-
with open(location) as replay_file:
87+
with open(location, 'rb') as replay_file:
8888
replays.append(self.make_replay(replay_file, **options))
8989

9090
return replays

0 commit comments

Comments
 (0)