Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions fsspec/implementations/http_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand Down Expand Up @@ -269,7 +269,7 @@ def __init__(

@property
def fsid(self):
return "http_sync"
return "sync-http"

def encode_url(self, url):
if yarl:
Expand All @@ -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

Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion fsspec/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading