changeset 31300:0c8a042b193d

httpconnection: rename config to groups Because that is what it is.
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 09 Mar 2017 20:53:14 -0800
parents 90e69badb125
children 295625f1296b
files mercurial/httpconnection.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/httpconnection.py	Thu Mar 09 20:51:57 2017 -0800
+++ b/mercurial/httpconnection.py	Thu Mar 09 20:53:14 2017 -0800
@@ -67,13 +67,13 @@
 # moved here from url.py to avoid a cycle
 def readauthforuri(ui, uri, user):
     # Read configuration
-    config = {}
+    groups = {}
     for key, val in ui.configitems('auth'):
         if '.' not in key:
             ui.warn(_("ignoring invalid [auth] key '%s'\n") % key)
             continue
         group, setting = key.rsplit('.', 1)
-        gdict = config.setdefault(group, {})
+        gdict = groups.setdefault(group, {})
         if setting in ('username', 'cert', 'key'):
             val = util.expandpath(val)
         gdict[setting] = val
@@ -83,7 +83,7 @@
     bestuser = None
     bestlen = 0
     bestauth = None
-    for group, auth in config.iteritems():
+    for group, auth in groups.iteritems():
         if user and user != auth.get('username', user):
             # If a username was set in the URI, the entry username
             # must either match it or be unset