mercurial/url.py
changeset 13419 1cc73868c740
parent 13372 5bced0d28a39
child 13420 051f498628f7
--- 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: