Patchwork D2651: py3: make sure regular expressions are bytes

login
register
mail settings
Submitter phabricator
Date March 4, 2018, 6:01 p.m.
Message ID <1040ccdf020104291b511c71207da8ed@localhost.localdomain>
Download mbox | patch
Permalink /patch/28945/
State Not Applicable
Headers show

Comments

phabricator - March 4, 2018, 6:01 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG470df8c5b781: py3: make sure regular expressions are bytes (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2651?vs=6565&id=6570

REVISION DETAIL
  https://phab.mercurial-scm.org/D2651

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -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: