diff mercurial/httpconnection.py @ 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 50d721553198
children 9d1c61715939
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