Mercurial > hg
comparison mercurial/hgweb/hgweb_mod.py @ 34806:afd7fd950f6e
hgweb: correct an earlier error of mine - `start` should be bytes
Gets hgweb very close to working with Python 3.
Differential Revision: https://phab.mercurial-scm.org/D1134
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 16 Oct 2017 22:43:19 -0400 |
parents | b2601c5977a4 |
children | da5d5ea7d696 |
comparison
equal
deleted
inserted
replaced
34805:c4a0480d1951 | 34806:afd7fd950f6e |
---|---|
185 styles, (style, mapfile) = getstyle(req, self.config, | 185 styles, (style, mapfile) = getstyle(req, self.config, |
186 self.templatepath) | 186 self.templatepath) |
187 if style == styles[0]: | 187 if style == styles[0]: |
188 vars['style'] = style | 188 vars['style'] = style |
189 | 189 |
190 start = r'&' if req.url[-1] == r'?' else r'?' | 190 start = '&' if req.url[-1] == r'?' else '?' |
191 sessionvars = webutil.sessionvars(vars, start) | 191 sessionvars = webutil.sessionvars(vars, start) |
192 | 192 |
193 if not self.reponame: | 193 if not self.reponame: |
194 self.reponame = (self.config('web', 'name', '') | 194 self.reponame = (self.config('web', 'name', '') |
195 or req.env.get('REPO_NAME') | 195 or req.env.get('REPO_NAME') |