diff 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
line wrap: on
line diff
--- 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: