mercurial/color.py
changeset 41532 bd3f03d8cc9f
parent 41365 876494fd967d
child 41740 ee77a6dd8fb8
--- a/mercurial/color.py	Mon Feb 04 09:29:25 2019 -0800
+++ b/mercurial/color.py	Mon Feb 04 08:54:30 2019 -0800
@@ -484,7 +484,7 @@
             w32effects = None
         else:
             origattr = csbi.wAttributes
-            ansire = re.compile(b'\033\[([^m]*)m([^\033]*)(.*)',
+            ansire = re.compile(br'\033\[([^m]*)m([^\033]*)(.*)',
                                 re.MULTILINE | re.DOTALL)
 
     def win32print(ui, writefunc, text, **opts):