changeset 36528:b546181ae451

py3: make regexp literal bytes in templatefilters.py # skip-blame because just b'' prefixes
author Yuya Nishihara <yuya@tcha.org>
date Thu, 01 Mar 2018 06:40:09 -0500
parents b2e54b257832
children 77f681f11003
files mercurial/templatefilters.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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