changeset 13419:1cc73868c740

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.
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 16 Feb 2011 04:28:17 +0100
parents 28555e294104
children 051f498628f7
files mercurial/url.py
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/url.py	Wed Feb 16 03:28:22 2011 +0100
+++ b/mercurial/url.py	Wed Feb 16 04:28:17 2011 +0100
@@ -546,12 +546,9 @@
         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: