diff mercurial/hgweb/webutil.py @ 36180:34e850440271

py3: slice over bytes to prevent getting ascii values Differential Revision: https://phab.mercurial-scm.org/D2256
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 14 Feb 2018 15:43:03 +0530
parents 4c7ae95e1c71
children 44a519ec5077
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py	Wed Feb 14 00:18:35 2018 -0500
+++ b/mercurial/hgweb/webutil.py	Wed Feb 14 15:43:03 2018 +0530
@@ -619,7 +619,7 @@
     websubdefs += repo.ui.configitems('interhg')
     for key, pattern in websubdefs:
         # grab the delimiter from the character after the "s"
-        unesc = pattern[1]
+        unesc = pattern[1:2]
         delim = re.escape(unesc)
 
         # identify portions of the pattern, taking care to avoid escaped