mercurial/hgweb/hgwebdir_mod.py
changeset 34702 b2316265a32e
parent 34612 c2cb6be4212f
child 34703 d1fccbd50fcd
--- a/mercurial/hgweb/hgwebdir_mod.py	Sun Oct 01 12:12:34 2017 -0400
+++ b/mercurial/hgweb/hgwebdir_mod.py	Thu Oct 05 14:48:31 2017 -0400
@@ -508,7 +508,7 @@
         if style == styles[0]:
             vars['style'] = style
 
-        start = url[-1] == '?' and '&' or '?'
+        start = '&' if url[-1] == '?' else '?'
         sessionvars = webutil.sessionvars(vars, start)
         logourl = config('web', 'logourl')
         logoimg = config('web', 'logoimg')