httpconnection: drop Python 2.4 specify hack
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 18 May 2015 16:47:26 -0500
changeset 25206 18a032704f0a
parent 25205 ff2ec757aacb
child 25207 6358391453f3
httpconnection: drop Python 2.4 specify hack Python 2.4.1 doesn't provide the full URI, good for it.
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