changeset 36415:caa3d42f616d

py3: make regex bytes in hgweb/webcommands.py # skip-blame because just b'' prefix
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 23 Feb 2018 18:47:26 +0530
parents 24b481668293
children 003ae586a02e
files mercurial/hgweb/webcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Fri Feb 23 18:23:51 2018 +0530
+++ b/mercurial/hgweb/webcommands.py	Fri Feb 23 18:47:26 2018 +0530
@@ -1116,7 +1116,7 @@
         msg = 'Archive type not allowed: %s' % type_
         raise ErrorResponse(HTTP_FORBIDDEN, msg)
 
-    reponame = re.sub(r"\W+", "-", os.path.basename(web.reponame))
+    reponame = re.sub(br"\W+", "-", os.path.basename(web.reponame))
     cnode = web.repo.lookup(key)
     arch_version = key
     if cnode == key or key == 'tip':