1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

strip newline off hg output

This commit is contained in:
Ian Bicking 2009-02-03 13:35:21 -06:00
parent 940c779044
commit 29c4191b0a

2
pip.py
View file

@ -2986,7 +2986,7 @@ class Mercurial(VersionControl):
def get_url(self, location):
url = call_subprocess(
['hg', 'showconfig', 'paths.default'],
show_stdout=False, cwd=location)
show_stdout=False, cwd=location).strip()
if url.startswith('/') or url.startswith('\\'):
url = filename_to_url(url)
return url.strip()