# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1520183408 -19800 # Node ID 470df8c5b7816dd6af48382f7835d11f417e6002 # Parent 7dc1a21d57cc5babd194ed89f96f00f9854fb69e py3: make sure regular expressions are bytes # skip-blame because just b'' prefix Differential Revision: https://phab.mercurial-scm.org/D2651 diff -r 7dc1a21d57cc -r 470df8c5b781 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: