changeset 31299:90e69badb125

httpconnection: don't use dict() Not sure the history here. But we don't do this elsewhere.
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 09 Mar 2017 20:51:57 -0800
parents 59d09565ac77
children 0c8a042b193d
files mercurial/httpconnection.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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