# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-02-23 13:17:26 # Node ID caa3d42f616d35161f4e25ca81ab7c2e6cbadb49 # Parent 24b4816682939607d00cd0ed26fa6fc7d2d8d796 py3: make regex bytes in hgweb/webcommands.py # skip-blame because just b'' prefix diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -1116,7 +1116,7 @@ def archive(web, req, tmpl): 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':