# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1518604614 -19800 # Node ID 44a519ec5077924153351b9ae28f4b3bc0a2989f # Parent 4f0439981a8a9e00e9c80540db9ca296e94960b1 py3: add b'' to make sure regex pattern are bytes in hgweb/webutil.py # skip-blame because we are just adding b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D2260 diff -r 4f0439981a8a -r 44a519ec5077 mercurial/hgweb/webutil.py --- a/mercurial/hgweb/webutil.py Wed Feb 14 15:58:11 2018 +0530 +++ b/mercurial/hgweb/webutil.py Wed Feb 14 16:06:54 2018 +0530 @@ -626,7 +626,7 @@ # delimiters. the replace format and flags are optional, but # delimiters are required. match = re.match( - r'^s%s(.+)(?:(?<=\\\\)|(?