We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c7b83f commit c01348aCopy full SHA for c01348a
zarr/convenience.py
@@ -1,4 +1,5 @@
1
"""Convenience functions for storing and loading data."""
2
+import io
3
import itertools
4
import os
5
import re
@@ -484,7 +485,7 @@ def __init__(self, log):
484
485
elif callable(log):
486
self.log_func = log
487
elif isinstance(log, str):
- self.log_file = open(log, mode='w')
488
+ self.log_file = io.open(log, mode='w')
489
self.needs_closing = True
490
elif hasattr(log, 'write'):
491
self.log_file = log
0 commit comments