mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Merge pull request #2392 from dstufft/path-decode
Decode Link().path before using it
This commit is contained in:
commit
2f8c6ad29a
1 changed files with 1 additions and 1 deletions
|
@ -1114,7 +1114,7 @@ class Link(object):
|
|||
|
||||
@property
|
||||
def path(self):
|
||||
return urllib_parse.urlsplit(self.url)[2]
|
||||
return urllib_parse.unquote(urllib_parse.urlsplit(self.url)[2])
|
||||
|
||||
def splitext(self):
|
||||
return splitext(posixpath.basename(self.path.rstrip('/')))
|
||||
|
|
Loading…
Reference in a new issue