Skip to content

Commit ed8a8ec

Browse files
committed
fixups
1 parent 542da8e commit ed8a8ec

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/zarr/api/asynchronous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ async def open_array(
10901090
try:
10911091
return await AsyncArray.open(store_path, zarr_format=zarr_format)
10921092
except FileNotFoundError:
1093-
if not store_path.store.readonly:
1093+
if not store_path.readonly:
10941094
return await create(
10951095
store=store_path,
10961096
zarr_format=zarr_format or _default_zarr_version(),

src/zarr/core/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ def read_only(self) -> bool:
772772
True if the array is read-only
773773
"""
774774
# Backwards compatibility for 2.x
775-
return self.store_path.store.readonly
775+
return self.store_path.readonly
776776

777777
@property
778778
def path(self) -> str:

src/zarr/core/group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ def store(self) -> Store:
815815
@property
816816
def read_only(self) -> bool:
817817
# Backwards compatibility for 2.x
818-
return self.store_path.store.readonly
818+
return self.store_path.readonly
819819

820820
@property
821821
def synchronizer(self) -> None:

0 commit comments

Comments
 (0)