equal
deleted
inserted
replaced
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') |