D2651: py3: make sure regular expressions are bytes

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Sun Mar 4 18:01:18 UTC 2018


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

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:



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


More information about the Mercurial-devel mailing list