@@ -294,7 +294,7 @@ def xisdir(path, use_auth_token: Optional[Union[str, bool]] = None) -> bool:
294294 return os .path .isdir (path )
295295 else :
296296 if not rest_hops and (main_hop .startswith ("http://" ) or main_hop .startswith ("https://" )):
297- raise NotImplementedError (f "os.path.isdir is not extended to support URLs in streaming mode" )
297+ raise NotImplementedError ("os.path.isdir is not extended to support URLs in streaming mode" )
298298 elif rest_hops and (rest_hops [0 ].startswith ("http://" ) or rest_hops [0 ].startswith ("https://" )):
299299 url = rest_hops [0 ]
300300 url , http_kwargs = _prepare_http_url_kwargs (url , use_auth_token = use_auth_token )
@@ -478,7 +478,7 @@ def xlistdir(path: str, use_auth_token: Optional[Union[str, bool]] = None) -> Li
478478 else :
479479 # globbing inside a zip in a private repo requires authentication
480480 if not rest_hops and (main_hop .startswith ("http://" ) or main_hop .startswith ("https://" )):
481- raise NotImplementedError (f "os.listdir is not extended to support URLs in streaming mode" )
481+ raise NotImplementedError ("os.listdir is not extended to support URLs in streaming mode" )
482482 elif rest_hops and (rest_hops [0 ].startswith ("http://" ) or rest_hops [0 ].startswith ("https://" )):
483483 url = rest_hops [0 ]
484484 url , http_kwargs = _prepare_http_url_kwargs (url , use_auth_token = use_auth_token )
@@ -511,7 +511,7 @@ def xglob(urlpath, *, recursive=False, use_auth_token: Optional[Union[str, bool]
511511 else :
512512 # globbing inside a zip in a private repo requires authentication
513513 if not rest_hops and (main_hop .startswith ("http://" ) or main_hop .startswith ("https://" )):
514- raise NotImplementedError (f "glob.glob is not extended to support URLs in streaming mode" )
514+ raise NotImplementedError ("glob.glob is not extended to support URLs in streaming mode" )
515515 elif rest_hops and (rest_hops [0 ].startswith ("http://" ) or rest_hops [0 ].startswith ("https://" )):
516516 url = rest_hops [0 ]
517517 url , kwargs = _prepare_http_url_kwargs (url , use_auth_token = use_auth_token )
@@ -546,7 +546,7 @@ def xwalk(urlpath, use_auth_token: Optional[Union[str, bool]] = None):
546546 else :
547547 # walking inside a zip in a private repo requires authentication
548548 if not rest_hops and (main_hop .startswith ("http://" ) or main_hop .startswith ("https://" )):
549- raise NotImplementedError (f "os.walk is not extended to support URLs in streaming mode" )
549+ raise NotImplementedError ("os.walk is not extended to support URLs in streaming mode" )
550550 elif rest_hops and (rest_hops [0 ].startswith ("http://" ) or rest_hops [0 ].startswith ("https://" )):
551551 url = rest_hops [0 ]
552552 url , kwargs = _prepare_http_url_kwargs (url , use_auth_token = use_auth_token )
0 commit comments