# HG changeset patch # User Augie Fackler # Date 2017-10-17 02:43:19 # Node ID afd7fd950f6e6f0cfe6854ce5d254e634f13013e # Parent c4a0480d1951f26ffd6066021b075f2788aa4f22 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 diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -187,7 +187,7 @@ class requestcontext(object): if style == styles[0]: vars['style'] = style - start = r'&' if req.url[-1] == r'?' else r'?' + start = '&' if req.url[-1] == r'?' else '?' sessionvars = webutil.sessionvars(vars, start) if not self.reponame: