httpconnection: don't use dict()
authorGregory Szorc <gregory.szorc@gmail.com>
Thu, 09 Mar 2017 20:51:57 -0800
changeset 31299 90e69badb125
parent 31298 59d09565ac77
child 31300 0c8a042b193d
httpconnection: don't use dict() Not sure the history here. But we don't do this elsewhere.
mercurial/httpconnection.py
--- 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