mercurial/httpconnection.py
changeset 43106 d783f945a701
parent 43085 eef9a2d67051
child 44298 0e8b28fb751b
equal deleted inserted replaced
43105:649d3ac37a12 43106:d783f945a701
    85     # Find the best match
    85     # Find the best match
    86     scheme, hostpath = uri.split(b'://', 1)
    86     scheme, hostpath = uri.split(b'://', 1)
    87     bestuser = None
    87     bestuser = None
    88     bestlen = 0
    88     bestlen = 0
    89     bestauth = None
    89     bestauth = None
    90     for group, auth in groups.iteritems():
    90     for group, auth in pycompat.iteritems(groups):
    91         if user and user != auth.get(b'username', user):
    91         if user and user != auth.get(b'username', user):
    92             # If a username was set in the URI, the entry username
    92             # If a username was set in the URI, the entry username
    93             # must either match it or be unset
    93             # must either match it or be unset
    94             continue
    94             continue
    95         prefix = auth.get(b'prefix')
    95         prefix = auth.get(b'prefix')