changeset 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 c4a0480d1951
children 3caec3c032c8
files mercurial/hgweb/hgweb_mod.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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: