py3: make sure regular expressions are bytes
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 04 Mar 2018 22:40:08 +0530
changeset 36704 470df8c5b781
parent 36703 7dc1a21d57cc
child 36705 c6901665cd5b
py3: make sure regular expressions are bytes # skip-blame because just b'' prefix Differential Revision: https://phab.mercurial-scm.org/D2651
mercurial/context.py
--- a/mercurial/context.py	Sun Mar 04 05:53:59 2018 +0530
+++ b/mercurial/context.py	Sun Mar 04 22:40:08 2018 +0530
@@ -53,7 +53,7 @@
 
 propertycache = util.propertycache
 
-nonascii = re.compile(r'[^\x21-\x7f]').search
+nonascii = re.compile(br'[^\x21-\x7f]').search
 
 class basectx(object):
     """A basectx object represents the common logic for its children: