Skip to content

Commit c24407c

Browse files
author
Shikhar Goenka
committed
remove extra call to normalize prefix and default prefix value in empty string now
1 parent 711c9f3 commit c24407c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

zarr/storage.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,7 @@ class ABSStore(MutableMapping):
19641964
In order to use this store, you must install the Microsoft Azure Storage SDK for Python.
19651965
"""
19661966

1967-
def __init__(self, container, prefix=None, account_name=None, account_key=None,
1967+
def __init__(self, container, prefix='', account_name=None, account_key=None,
19681968
blob_service_kwargs=None):
19691969
from azure.storage.blob import BlockBlobService
19701970
self.container = container
@@ -1994,8 +1994,7 @@ def _append_path_to_prefix(self, path):
19941994
if self.prefix == '':
19951995
return normalize_storage_path(path)
19961996
else:
1997-
return '/'.join([normalize_storage_path(self.prefix),
1998-
normalize_storage_path(path)])
1997+
return '/'.join([self.prefix, normalize_storage_path(path)])
19991998

20001999
@staticmethod
20012000
def _strip_prefix_from_path(path, prefix):

0 commit comments

Comments
 (0)