changeset 34700:8e5132ece156

hgweb: more native string treatment in query string parsing Differential Revision: https://phab.mercurial-scm.org/D1076
author Augie Fackler <augie@google.com>
date Thu, 05 Oct 2017 14:29:51 -0400
parents 375c8debe336
children 6db536bed7ec
files mercurial/hgweb/server.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/server.py	Sat Oct 14 14:07:39 2017 -0400
+++ b/mercurial/hgweb/server.py	Thu Oct 05 14:29:51 2017 -0400
@@ -37,10 +37,10 @@
     Just like CGI environment, the path is unquoted, the query is
     not.
     """
-    if '?' in uri:
-        path, query = uri.split('?', 1)
+    if r'?' in uri:
+        path, query = uri.split(r'?', 1)
     else:
-        path, query = uri, ''
+        path, query = uri, r''
     return urlreq.unquote(path), query
 
 class _error_logger(object):