mercurial/url.py
changeset 25837 d343806dcf68
parent 25660 328739ea70c3
child 25990 c3efcdba08ea
equal deleted inserted replaced
25836:dede675dc0c1 25837:d343806dcf68
   467 def opener(ui, authinfo=None):
   467 def opener(ui, authinfo=None):
   468     '''
   468     '''
   469     construct an opener suitable for urllib2
   469     construct an opener suitable for urllib2
   470     authinfo will be added to the password manager
   470     authinfo will be added to the password manager
   471     '''
   471     '''
       
   472     # experimental config: ui.usehttp2
   472     if ui.configbool('ui', 'usehttp2', False):
   473     if ui.configbool('ui', 'usehttp2', False):
   473         handlers = [httpconnectionmod.http2handler(ui, passwordmgr(ui))]
   474         handlers = [httpconnectionmod.http2handler(ui, passwordmgr(ui))]
   474     else:
   475     else:
   475         handlers = [httphandler()]
   476         handlers = [httphandler()]
   476         if has_https:
   477         if has_https: