mercurial/sslutil.py
changeset 34775 17919e9006b9
parent 34748 8c1d0fe1f431
child 35369 c8ecd96cc357
--- a/mercurial/sslutil.py	Sat Oct 14 00:28:48 2017 +0200
+++ b/mercurial/sslutil.py	Sat Oct 14 00:29:31 2017 +0200
@@ -186,8 +186,7 @@
 
     # Look for fingerprints in [hostsecurity] section. Value is a list
     # of <alg>:<fingerprint> strings.
-    fingerprints = ui.configlist('hostsecurity', '%s:fingerprints' % hostname,
-                                 [])
+    fingerprints = ui.configlist('hostsecurity', '%s:fingerprints' % hostname)
     for fingerprint in fingerprints:
         if not (fingerprint.startswith(('sha1:', 'sha256:', 'sha512:'))):
             raise error.Abort(_('invalid fingerprint for %s: %s') % (