# HG changeset patch # User Augie Fackler # Date 1507229332 14400 # Node ID d1fccbd50fcd081fc98c88f30701ba029d7c2505 # Parent b2316265a32eaffc2c9b598f691e51d1431b5d3a hgweb: use native strings consistently for querystring parsing Differential Revision: https://phab.mercurial-scm.org/D1078 diff -r b2316265a32e -r d1fccbd50fcd mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Thu Oct 05 14:48:31 2017 -0400 +++ b/mercurial/hgweb/hgweb_mod.py Thu Oct 05 14:48:52 2017 -0400 @@ -187,7 +187,7 @@ if style == styles[0]: vars['style'] = style - start = '&' if req.url[-1] == '?' else '?' + start = r'&' if req.url[-1] == r'?' else r'?' sessionvars = webutil.sessionvars(vars, start) if not self.reponame: diff -r b2316265a32e -r d1fccbd50fcd mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Thu Oct 05 14:48:31 2017 -0400 +++ b/mercurial/hgweb/hgwebdir_mod.py Thu Oct 05 14:48:52 2017 -0400 @@ -508,7 +508,7 @@ if style == styles[0]: vars['style'] = style - start = '&' if url[-1] == '?' else '?' + start = r'&' if url[-1] == r'?' else r'?' sessionvars = webutil.sessionvars(vars, start) logourl = config('web', 'logourl') logoimg = config('web', 'logoimg')