equal
deleted
inserted
replaced
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. |