mercurial/sslutil.py
changeset 14667 8f12dac18d13
parent 14666 27b080aa880a
child 15160 b2d4400398f3
equal deleted inserted replaced
14666:27b080aa880a 14667:8f12dac18d13
   120                                    '(check hostfingerprints or web.cacerts '
   120                                    '(check hostfingerprints or web.cacerts '
   121                                    'config setting)\n') %
   121                                    'config setting)\n') %
   122                                  (host, nicefingerprint))
   122                                  (host, nicefingerprint))
   123             else: # python 2.5 ?
   123             else: # python 2.5 ?
   124                 if hostfingerprint:
   124                 if hostfingerprint:
   125                     raise util.Abort(_('no certificate for %s with '
   125                     raise util.Abort(_("host fingerprint for %s can't be "
   126                                        'configured hostfingerprint') % host)
   126                                        "verified (Python too old)") % host)
   127                 self.ui.warn(_('warning: %s certificate not verified '
   127                 self.ui.warn(_("warning: certificate for %s can't be "
   128                                '(check web.cacerts config setting)\n') %
   128                                "verified (Python too old)\n") % host)
   129                              host)