1
1
Fork 0
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:
Donald Stufft 2015-02-02 19:35:15 -05:00
commit 2f8c6ad29a

View file

@ -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('/')))