##// END OF EJS Templates
py3: make regex bytes in hgweb/webcommands.py...
Pulkit Goyal -
r36402:caa3d42f default
parent child Browse files
Show More
@@ -1116,7 +1116,7 b' def archive(web, req, tmpl):'
1116 msg = 'Archive type not allowed: %s' % type_
1116 msg = 'Archive type not allowed: %s' % type_
1117 raise ErrorResponse(HTTP_FORBIDDEN, msg)
1117 raise ErrorResponse(HTTP_FORBIDDEN, msg)
1118
1118
1119 reponame = re.sub(r"\W+", "-", os.path.basename(web.reponame))
1119 reponame = re.sub(br"\W+", "-", os.path.basename(web.reponame))
1120 cnode = web.repo.lookup(key)
1120 cnode = web.repo.lookup(key)
1121 arch_version = key
1121 arch_version = key
1122 if cnode == key or key == 'tip':
1122 if cnode == key or key == 'tip':
General Comments 0
You need to be logged in to leave comments. Login now