# HG changeset patch # User Mads Kiilerich # Date 2011-02-16 03:28:17 # Node ID 1cc73868c740e0c7f0fc53062bea92aa09005342 # Parent 28555e2941049f7dc8e81d6191235bc723ff7f36 url: remove test for self.ui in BetterHTTPS We use self.ui unconditionally anyway so we would have noticed if it in some cases wasn't set. diff --git a/mercurial/url.py b/mercurial/url.py --- a/mercurial/url.py +++ b/mercurial/url.py @@ -546,12 +546,9 @@ if has_https: send = keepalive.safesend def connect(self): - if hasattr(self, 'ui'): - cacerts = self.ui.config('web', 'cacerts') - if cacerts: - cacerts = util.expandpath(cacerts) - else: - cacerts = None + cacerts = self.ui.config('web', 'cacerts') + if cacerts: + cacerts = util.expandpath(cacerts) hostfingerprint = self.ui.config('hostfingerprints', self.host) if cacerts and not hostfingerprint: