mercurial/httpconnection.py
changeset 36651 6b1eb4c610b4
parent 36426 23d12524a202
child 38393 5f9d436cd3b7
equal deleted inserted replaced
36650:9318babff83b 36651:6b1eb4c610b4
    12 
    12 
    13 import os
    13 import os
    14 
    14 
    15 from .i18n import _
    15 from .i18n import _
    16 from . import (
    16 from . import (
       
    17     pycompat,
    17     util,
    18     util,
    18 )
    19 )
    19 
    20 
    20 urlerr = util.urlerr
    21 urlerr = util.urlerr
    21 urlreq = util.urlreq
    22 urlreq = util.urlreq
    60     def __exit__(self, exc_type, exc_val, exc_tb):
    61     def __exit__(self, exc_type, exc_val, exc_tb):
    61         self.close()
    62         self.close()
    62 
    63 
    63 # moved here from url.py to avoid a cycle
    64 # moved here from url.py to avoid a cycle
    64 def readauthforuri(ui, uri, user):
    65 def readauthforuri(ui, uri, user):
       
    66     uri = pycompat.bytesurl(uri)
    65     # Read configuration
    67     # Read configuration
    66     groups = {}
    68     groups = {}
    67     for key, val in ui.configitems('auth'):
    69     for key, val in ui.configitems('auth'):
    68         if key in ('cookiefile',):
    70         if key in ('cookiefile',):
    69             continue
    71             continue