Skip to content

Commit

Permalink
upath.implementations.local: fix drive letter must be uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Jul 30, 2023
1 parent 0a98f9e commit 98d8c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upath/implementations/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def path(self) -> str:
def _from_parts(cls, args, *, url=None, **kw):
if url:
args = list(args)
args[0] = urlunsplit(url)
args[0] = urlunsplit(url._replace(scheme=url.scheme.upper()))
return super(UPath, cls)._from_parts(args)


Expand Down Expand Up @@ -91,5 +91,5 @@ def path(self) -> str:
def _from_parts(cls, args, *, url=None, **kw):
if url:
args = list(args)
args[0] = urlunsplit(url)
args[0] = urlunsplit(url._replace(scheme=url.scheme.upper()))
return super(UPath, cls)._from_parts(args)

0 comments on commit 98d8c93

Please sign in to comment.