@@ -201,7 +201,7 @@ class HTTPFileSystem(AbstractFileSystem):
201
201
you are testing pyodide/pyscript integration***
202
202
"""
203
203
204
- protocol = ("http" , "https" , "sync_http " , "sync_https " )
204
+ protocol = ("http" , "https" , "sync-http " , "sync-https " )
205
205
sep = "/"
206
206
207
207
def __init__ (
@@ -269,7 +269,7 @@ def __init__(
269
269
270
270
@property
271
271
def fsid (self ):
272
- return "http_sync "
272
+ return "sync-http "
273
273
274
274
def encode_url (self , url ):
275
275
if yarl :
@@ -279,8 +279,8 @@ def encode_url(self, url):
279
279
@classmethod
280
280
def _strip_protocol (cls , path : str ) -> str :
281
281
"""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://"
284
284
)
285
285
return path
286
286
@@ -918,8 +918,8 @@ def _file_info(url, session, size_policy="head", **kwargs):
918
918
def register ():
919
919
register_implementation ("http" , HTTPFileSystem , clobber = True )
920
920
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 )
923
923
924
924
925
925
register ()
0 commit comments