# HG changeset patch # User Pierre-Yves David # Date 1431985646 18000 # Node ID 18a032704f0ab07bc12c2ebc6bdde82080490046 # Parent ff2ec757aacbc3addfa7c4df2b014e606e8dd7b9 httpconnection: drop Python 2.4 specify hack Python 2.4.1 doesn't provide the full URI, good for it. diff -r ff2ec757aacb -r 18a032704f0a mercurial/httpconnection.py --- 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