py3: make regexp literal bytes in templatefilters.py
authorYuya Nishihara <yuya@tcha.org>
Thu, 01 Mar 2018 06:40:09 -0500
changeset 36528 b546181ae451
parent 36527 b2e54b257832
child 36529 77f681f11003
py3: make regexp literal bytes in templatefilters.py # skip-blame because just b'' prefixes
mercurial/templatefilters.py
--- a/mercurial/templatefilters.py	Thu Mar 01 06:38:37 2018 -0500
+++ b/mercurial/templatefilters.py	Thu Mar 01 06:40:09 2018 -0500
@@ -145,7 +145,7 @@
     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