Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 36704:470df8c5b781
py3: make sure regular expressions are bytes
# skip-blame because just b'' prefix
Differential Revision: https://phab.mercurial-scm.org/D2651
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 04 Mar 2018 22:40:08 +0530 |
parents | b529e640015d |
children | c6901665cd5b |
comparison
equal
deleted
inserted
replaced
36703:7dc1a21d57cc | 36704:470df8c5b781 |
---|---|
51 ) | 51 ) |
52 from .utils import dateutil | 52 from .utils import dateutil |
53 | 53 |
54 propertycache = util.propertycache | 54 propertycache = util.propertycache |
55 | 55 |
56 nonascii = re.compile(r'[^\x21-\x7f]').search | 56 nonascii = re.compile(br'[^\x21-\x7f]').search |
57 | 57 |
58 class basectx(object): | 58 class basectx(object): |
59 """A basectx object represents the common logic for its children: | 59 """A basectx object represents the common logic for its children: |
60 changectx: read-only context that is already present in the repo, | 60 changectx: read-only context that is already present in the repo, |
61 workingctx: a context that represents the working directory and can | 61 workingctx: a context that represents the working directory and can |