Skip to content

Commit

Permalink
fix bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamman committed Oct 13, 2024
1 parent 04b12d3 commit 20d8392
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/zarr/storage/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,7 @@ def from_url(
-------
RemoteStore
"""
opts = storage_options or {}
opts = {"asynchronous": True, **opts}

fs, path = fsspec.url_to_fs(url, **opts)

# fsspec is not consistent about removing the scheme from the path, so check and strip it here
# https://github.com/fsspec/filesystem_spec/issues/1722
if "://" in path:
_, path = path.split("://", maxsplit=1)

fs, path = fsspec.url_to_fs(url, **storage_options)
return cls(fs=fs, path=path, mode=mode, allowed_exceptions=allowed_exceptions)

async def clear(self) -> None:
Expand Down

0 comments on commit 20d8392

Please sign in to comment.