mercurial/httpconnection.py
changeset 31299 90e69badb125
parent 30142 3dcaf1c4e90d
child 31300 0c8a042b193d
--- a/mercurial/httpconnection.py	Thu Mar 09 15:38:00 2017 -0800
+++ b/mercurial/httpconnection.py	Thu Mar 09 20:51:57 2017 -0800
@@ -67,13 +67,13 @@
 # moved here from url.py to avoid a cycle
 def readauthforuri(ui, uri, user):
     # Read configuration
-    config = dict()
+    config = {}
     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, dict())
+        gdict = config.setdefault(group, {})
         if setting in ('username', 'cert', 'key'):
             val = util.expandpath(val)
         gdict[setting] = val