# HG changeset patch # User Yuya Nishihara # Date 2018-03-01 11:40:09 # Node ID b546181ae4517e5ef52ca40e663b7768bbb22a0e # Parent b2e54b257832565869ac8988569790826172b3a2 py3: make regexp literal bytes in templatefilters.py # skip-blame because just b'' prefixes diff --git a/mercurial/templatefilters.py b/mercurial/templatefilters.py --- a/mercurial/templatefilters.py +++ b/mercurial/templatefilters.py @@ -145,7 +145,7 @@ def fill(text, width, initindent='', han global para_re, space_re if para_re is None: para_re = re.compile('(\n\n|\n\\s*[-*]\\s*)', re.M) - space_re = re.compile(r' +') + space_re = re.compile(br' +') def findparas(): start = 0