mercurial/hgweb/request.py
changeset 46907 ffd3e823a7e5
parent 46819 d4ba4d51f85f
child 48875 6000f5b25c9b
equal deleted inserted replaced
46906:33524c46a092 46907:ffd3e823a7e5
    14 from .. import (
    14 from .. import (
    15     encoding,
    15     encoding,
    16     error,
    16     error,
    17     pycompat,
    17     pycompat,
    18     util,
    18     util,
       
    19 )
       
    20 from ..utils import (
       
    21     urlutil,
    19 )
    22 )
    20 
    23 
    21 
    24 
    22 class multidict(object):
    25 class multidict(object):
    23     """A dict like object that can store multiple values for a key.
    26     """A dict like object that can store multiple values for a key.
   182     # checked prior to d7fd203e36cc; keep doing so to avoid breaking them.
   185     # checked prior to d7fd203e36cc; keep doing so to avoid breaking them.
   183     if not reponame:
   186     if not reponame:
   184         reponame = env.get(b'REPO_NAME')
   187         reponame = env.get(b'REPO_NAME')
   185 
   188 
   186     if altbaseurl:
   189     if altbaseurl:
   187         altbaseurl = util.url(altbaseurl)
   190         altbaseurl = urlutil.url(altbaseurl)
   188 
   191 
   189     # https://www.python.org/dev/peps/pep-0333/#environ-variables defines
   192     # https://www.python.org/dev/peps/pep-0333/#environ-variables defines
   190     # the environment variables.
   193     # the environment variables.
   191     # https://www.python.org/dev/peps/pep-0333/#url-reconstruction defines
   194     # https://www.python.org/dev/peps/pep-0333/#url-reconstruction defines
   192     # how URLs are reconstructed.
   195     # how URLs are reconstructed.