Skip to content

Commit

Permalink
upath: always add netloc to ensure fsspec compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Oct 28, 2023
1 parent befb71e commit 574191a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upath/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def _format_parsed_parts(
else:
scheme, netloc = url.scheme, url.netloc
scheme = (scheme + ":") if scheme else ""
netloc = "//" + netloc if netloc else ""
netloc = "//" + netloc # always add netloc
formatted = scheme + netloc + path
return formatted

Expand Down

0 comments on commit 574191a

Please sign in to comment.