diff --git a/fsspec/implementations/http_sync.py b/fsspec/implementations/http_sync.py index 2a1caf1b0..d8f87952b 100644 --- a/fsspec/implementations/http_sync.py +++ b/fsspec/implementations/http_sync.py @@ -201,7 +201,7 @@ class HTTPFileSystem(AbstractFileSystem): you are testing pyodide/pyscript integration*** """ - protocol = ("http", "https", "sync_http", "sync_https") + protocol = ("http", "https", "sync-http", "sync-https") sep = "/" def __init__( @@ -269,7 +269,7 @@ def __init__( @property def fsid(self): - return "http_sync" + return "sync-http" def encode_url(self, url): if yarl: @@ -279,8 +279,8 @@ def encode_url(self, url): @classmethod def _strip_protocol(cls, path: str) -> str: """For HTTP, we always want to keep the full URL""" - path = path.replace("http_sync://", "http://").replace( - "https_sync://", "https://" + path = path.replace("sync-http://", "http://").replace( + "sync-https://", "https://" ) return path @@ -918,8 +918,8 @@ def _file_info(url, session, size_policy="head", **kwargs): def register(): register_implementation("http", HTTPFileSystem, clobber=True) register_implementation("https", HTTPFileSystem, clobber=True) - register_implementation("sync_http", HTTPFileSystem, clobber=True) - register_implementation("sync_https", HTTPFileSystem, clobber=True) + register_implementation("sync-http", HTTPFileSystem, clobber=True) + register_implementation("sync-https", HTTPFileSystem, clobber=True) register() diff --git a/fsspec/registry.py b/fsspec/registry.py index 59be4db7b..f5c42bb65 100644 --- a/fsspec/registry.py +++ b/fsspec/registry.py @@ -73,7 +73,7 @@ def register_implementation(name, cls, clobber=False, errtxt=None): "err": "pyarrow and local java libraries required for HDFS", }, "async_wrapper": { - "class": "morefs.asyn_wrapper.AsyncWrapperFileSystem", + "class": "fsspec.asyn_wrapper.AsyncWrapperFileSystem", }, "asynclocal": { "class": "morefs.asyn_local.AsyncLocalFileSystem",