hgweb: correct an earlier error of mine - `start` should be bytes
authorAugie Fackler <augie@google.com>
Mon, 16 Oct 2017 22:43:19 -0400
changeset 34806 afd7fd950f6e
parent 34805 c4a0480d1951
child 34807 3caec3c032c8
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
mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py	Mon Oct 16 18:58:16 2017 +0200
+++ b/mercurial/hgweb/hgweb_mod.py	Mon Oct 16 22:43:19 2017 -0400
@@ -187,7 +187,7 @@
         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: