Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 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 | 0cacd4df6eb0 |
children | 1fb9e01328e4 |
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':