comparison 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
comparison
equal deleted inserted replaced
25205:ff2ec757aacb 25206:18a032704f0a
68 if setting in ('username', 'cert', 'key'): 68 if setting in ('username', 'cert', 'key'):
69 val = util.expandpath(val) 69 val = util.expandpath(val)
70 gdict[setting] = val 70 gdict[setting] = val
71 71
72 # Find the best match 72 # Find the best match
73 if '://' in uri: 73 scheme, hostpath = uri.split('://', 1)
74 scheme, hostpath = uri.split('://', 1)
75 else:
76 # Python 2.4.1 doesn't provide the full URI
77 scheme, hostpath = 'http', uri
78 bestuser = None 74 bestuser = None
79 bestlen = 0 75 bestlen = 0
80 bestauth = None 76 bestauth = None
81 for group, auth in config.iteritems(): 77 for group, auth in config.iteritems():
82 if user and user != auth.get('username', user): 78 if user and user != auth.get('username', user):