Skip to content

Commit 8c7b83f

Browse files
io.open → open
In Python 3, io.open() is an alias for the builtin open() function: https://docs.python.org/3/library/io.html#io.open
1 parent 4132f36 commit 8c7b83f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/release.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ Release notes
1111
Unreleased
1212
----------
1313

14+
Maintenance
15+
~~~~~~~~~~~
16+
17+
* Change occurrence of io.open() into open().
18+
By :user:`Dimitri Papadopoulos Orfanos <DimitriPapadopoulos>` :issue:`1421`.
19+
1420
.. _release_2.15.0:
1521

1622
2.15.0

zarr/convenience.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""Convenience functions for storing and loading data."""
2-
import io
32
import itertools
43
import os
54
import re
@@ -485,7 +484,7 @@ def __init__(self, log):
485484
elif callable(log):
486485
self.log_func = log
487486
elif isinstance(log, str):
488-
self.log_file = io.open(log, mode='w')
487+
self.log_file = open(log, mode='w')
489488
self.needs_closing = True
490489
elif hasattr(log, 'write'):
491490
self.log_file = log

0 commit comments

Comments
 (0)