Skip to content

Commit c01348a

Browse files
TEMPORARY: find if this PR causes the CI error
1 parent 8c7b83f commit c01348a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zarr/convenience.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Convenience functions for storing and loading data."""
2+
import io
23
import itertools
34
import os
45
import re
@@ -484,7 +485,7 @@ def __init__(self, log):
484485
elif callable(log):
485486
self.log_func = log
486487
elif isinstance(log, str):
487-
self.log_file = open(log, mode='w')
488+
self.log_file = io.open(log, mode='w')
488489
self.needs_closing = True
489490
elif hasattr(log, 'write'):
490491
self.log_file = log

0 commit comments

Comments
 (0)