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:
parent
940c779044
commit
29c4191b0a
2
pip.py
2
pip.py
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue