Mercurial > hg-stable
changeset 25206:18a032704f0a
httpconnection: drop Python 2.4 specify hack
Python 2.4.1 doesn't provide the full URI, good for it.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 18 May 2015 16:47:26 -0500 |
parents | ff2ec757aacb |
children | 6358391453f3 |
files | mercurial/httpconnection.py |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/httpconnection.py Mon May 18 16:46:32 2015 -0500 +++ b/mercurial/httpconnection.py Mon May 18 16:47:26 2015 -0500 @@ -70,11 +70,7 @@ gdict[setting] = val # Find the best match - if '://' in uri: - scheme, hostpath = uri.split('://', 1) - else: - # Python 2.4.1 doesn't provide the full URI - scheme, hostpath = 'http', uri + scheme, hostpath = uri.split('://', 1) bestuser = None bestlen = 0 bestauth = None