Skip to content

Commit 4e638e8

Browse files
committed
Fix FileCaching for python3.
1 parent cc34ecf commit 4e638e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sc2reader/factories/sc2factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def cache_set(self, cache_key, value):
274274
if not os.path.exists(bucket_dir):
275275
os.makedirs(bucket_dir)
276276

277-
with open(cache_path, 'w') as out:
277+
with open(cache_path, 'wb') as out:
278278
out.write(value)
279279

280280
def cache_path(self, cache_key):

0 commit comments

Comments
 (0)