Comments
Patch
@@ -22,7 +22,7 @@
httpconnection,
pycompat,
statichttprepo,
- url,
+ url as urlmod,
util,
wireproto,
)
@@ -149,7 +149,7 @@
self._ui = ui
ui.debug('using %s\n' % self._url)
- self._urlopener = url.opener(ui, authinfo)
+ self._urlopener = urlmod.opener(ui, authinfo)
def __del__(self):
urlopener = getattr(self, '_urlopener', None)
@@ -484,7 +484,7 @@
if create:
raise error.Abort(_('cannot create new http repository'))
try:
- if path.startswith('https:') and not url.has_https:
+ if path.startswith('https:') and not urlmod.has_https:
raise error.Abort(_('Python support for SSL and HTTPS '
'is not installed'))