# HG changeset patch # User Matt Harbison # Date 2022-11-22 16:55:26 # Node ID c4874ebe8644b03a19c35136c3fa06256feada41 # Parent f09bc2ed9100e1e24a52feaec3f5dbf5179cd11e match: make the FLAG_RE pattern a raw string PyCharm was complaining about invalid escape sequences since this was added recently in 3eda36e9b3d6. diff --git a/mercurial/match.py b/mercurial/match.py --- a/mercurial/match.py +++ b/mercurial/match.py @@ -1323,7 +1323,7 @@ def _globre(pat): return res -FLAG_RE = util.re.compile(b'^\(\?([aiLmsux]+)\)(.*)') +FLAG_RE = util.re.compile(br'^\(\?([aiLmsux]+)\)(.*)') def _regex(kind, pat, globsuffix):