Skip to content

Commit 7e4da51

Browse files
authored
protocol configs (#1806)
1 parent 50c5a2e commit 7e4da51

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Diff for: fsspec/implementations/http_sync.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class HTTPFileSystem(AbstractFileSystem):
201201
you are testing pyodide/pyscript integration***
202202
"""
203203

204-
protocol = ("http", "https", "sync_http", "sync_https")
204+
protocol = ("http", "https", "sync-http", "sync-https")
205205
sep = "/"
206206

207207
def __init__(
@@ -269,7 +269,7 @@ def __init__(
269269

270270
@property
271271
def fsid(self):
272-
return "http_sync"
272+
return "sync-http"
273273

274274
def encode_url(self, url):
275275
if yarl:
@@ -279,8 +279,8 @@ def encode_url(self, url):
279279
@classmethod
280280
def _strip_protocol(cls, path: str) -> str:
281281
"""For HTTP, we always want to keep the full URL"""
282-
path = path.replace("http_sync://", "http://").replace(
283-
"https_sync://", "https://"
282+
path = path.replace("sync-http://", "http://").replace(
283+
"sync-https://", "https://"
284284
)
285285
return path
286286

@@ -918,8 +918,8 @@ def _file_info(url, session, size_policy="head", **kwargs):
918918
def register():
919919
register_implementation("http", HTTPFileSystem, clobber=True)
920920
register_implementation("https", HTTPFileSystem, clobber=True)
921-
register_implementation("sync_http", HTTPFileSystem, clobber=True)
922-
register_implementation("sync_https", HTTPFileSystem, clobber=True)
921+
register_implementation("sync-http", HTTPFileSystem, clobber=True)
922+
register_implementation("sync-https", HTTPFileSystem, clobber=True)
923923

924924

925925
register()

Diff for: fsspec/registry.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def register_implementation(name, cls, clobber=False, errtxt=None):
7373
"err": "pyarrow and local java libraries required for HDFS",
7474
},
7575
"async_wrapper": {
76-
"class": "morefs.asyn_wrapper.AsyncWrapperFileSystem",
76+
"class": "fsspec.asyn_wrapper.AsyncWrapperFileSystem",
7777
},
7878
"asynclocal": {
7979
"class": "morefs.asyn_local.AsyncLocalFileSystem",

0 commit comments

Comments
 (0)