From 20d83922aeb2505a1a0521c4b9a44d7cb1d621c4 Mon Sep 17 00:00:00 2001 From: Joseph Hamman Date: Sun, 13 Oct 2024 08:55:13 -0700 Subject: [PATCH] fix bad merge --- src/zarr/storage/remote.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/zarr/storage/remote.py b/src/zarr/storage/remote.py index 7990232b9..9782a9877 100644 --- a/src/zarr/storage/remote.py +++ b/src/zarr/storage/remote.py @@ -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: