mercurial/url.py
changeset 50926 bc9c9ed0659d
parent 50925 13eab1a5db78
child 50928 d718eddf01d9
equal deleted inserted replaced
50925:13eab1a5db78 50926:bc9c9ed0659d
   539         # an HTTPS URL, we'll likely fail due to unknown protocol.
   539         # an HTTPS URL, we'll likely fail due to unknown protocol.
   540 
   540 
   541     else:
   541     else:
   542         handlers.append(httphandler(timeout=timeout))
   542         handlers.append(httphandler(timeout=timeout))
   543         if has_https:
   543         if has_https:
   544             handlers.append(httpshandler(ui, timeout=timeout))
   544             # pytype get confused about the conditional existence for httpshandler here.
       
   545             handlers.append(
       
   546                 httpshandler(ui, timeout=timeout)  # pytype: disable=name-error
       
   547             )
   545 
   548 
   546     handlers.append(proxyhandler(ui))
   549     handlers.append(proxyhandler(ui))
   547 
   550 
   548     passmgr = passwordmgr(ui, ui.httppasswordmgrdb)
   551     passmgr = passwordmgr(ui, ui.httppasswordmgrdb)
   549     if authinfo is not None:
   552     if authinfo is not None: