@@ -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):
918918def 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
925925register ()
0 commit comments