~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/_urllib2_wrappers.py

  • Committer: Patch Queue Manager
  • Date: 2012-07-28 13:39:59 UTC
  • mfrom: (6524.4.2 bzr.sslmoaning)
  • Revision ID: pqm@pqm.ubuntu.com-20120728133959-zmycu56kx99zttog
(gz) Stop complaining about https certificates more than once (Marius Kruger)

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
    osutils,
69
69
    trace,
70
70
    transport,
 
71
    ui,
71
72
    urlutils,
72
73
    )
73
74
lazy_import.lazy_import(globals(), """
481
482
        else:
482
483
            host = self.host
483
484
        if cert_reqs == ssl.CERT_NONE:
484
 
            trace.warning("Not checking SSL certificate for %s", host)
 
485
            ui.ui_factory.show_user_warning('not_checking_ssl_cert', host=host)
 
486
            ui.ui_factory.suppressed_warnings.add('not_checking_ssl_cert')
485
487
            ca_certs = None
486
488
        else:
487
489
            if self.ca_certs is None: