##// END OF EJS Templates
httppeer: alias url as urlmod...
Gregory Szorc -
r36977:43815d87 default
parent child Browse files
Show More
@@ -22,7 +22,7 b' from . import ('
22 httpconnection,
22 httpconnection,
23 pycompat,
23 pycompat,
24 statichttprepo,
24 statichttprepo,
25 url,
25 url as urlmod,
26 util,
26 util,
27 wireproto,
27 wireproto,
28 )
28 )
@@ -150,7 +150,7 b' class httppeer(wireproto.wirepeer):'
150 self._ui = ui
150 self._ui = ui
151 ui.debug('using %s\n' % self._url)
151 ui.debug('using %s\n' % self._url)
152
152
153 self._urlopener = url.opener(ui, authinfo)
153 self._urlopener = urlmod.opener(ui, authinfo)
154 self._requestbuilder = urlreq.request
154 self._requestbuilder = urlreq.request
155
155
156 def __del__(self):
156 def __del__(self):
@@ -486,7 +486,7 b' def instance(ui, path, create):'
486 if create:
486 if create:
487 raise error.Abort(_('cannot create new http repository'))
487 raise error.Abort(_('cannot create new http repository'))
488 try:
488 try:
489 if path.startswith('https:') and not url.has_https:
489 if path.startswith('https:') and not urlmod.has_https:
490 raise error.Abort(_('Python support for SSL and HTTPS '
490 raise error.Abort(_('Python support for SSL and HTTPS '
491 'is not installed'))
491 'is not installed'))
492
492
General Comments 0
You need to be logged in to leave comments. Login now