Skip to content

Commit 41508c1

Browse files
committed
use _sync_open
1 parent 473b428 commit 41508c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/zarr/storage/_zip.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,15 @@ def __init__(
9292

9393
def with_read_only(self, read_only: bool = False) -> ZipStore:
9494
# docstring inherited
95-
return type(self)(
95+
store = type(self)(
9696
path=self.path,
9797
mode='r',
9898
read_only=read_only,
9999
compression=self.compression,
100100
allowZip64=self.allowZip64,
101101
)
102+
store._sync_open()
103+
return store
102104

103105
def _sync_open(self) -> None:
104106
if self._is_open:

0 commit comments

Comments
 (0)