Mercurial > hg
changeset 46521:ebc6d3484fdd stable
re2: byteify some regex used to get check re2 availability
Changeset 687b865b95ad failed to properly byteify this because it was a raw
string. This went undetected so far because re2 does not seems to be widely
tested.
Differential Revision: https://phab.mercurial-scm.org/D10064
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 24 Feb 2021 15:16:22 +0100 |
parents | b910be772eb9 |
children | 6c8faeea6652 |
files | mercurial/util.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py Wed Feb 10 23:03:54 2021 +0100 +++ b/mercurial/util.py Wed Feb 24 15:16:22 2021 +0100 @@ -2170,7 +2170,7 @@ global _re2 try: # check if match works, see issue3964 - _re2 = bool(re2.match(r'\[([^\[]+)\]', b'[ui]')) + _re2 = bool(re2.match(br'\[([^\[]+)\]', b'[ui]')) except ImportError: _re2 = False