# HG changeset patch # User Matt Harbison # Date 1669136126 18000 # 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 -r f09bc2ed9100 -r c4874ebe8644 mercurial/match.py --- a/mercurial/match.py Sun Nov 20 15:55:27 2022 -0500 +++ b/mercurial/match.py Tue Nov 22 11:55:26 2022 -0500 @@ -1323,7 +1323,7 @@ return res -FLAG_RE = util.re.compile(b'^\(\?([aiLmsux]+)\)(.*)') +FLAG_RE = util.re.compile(br'^\(\?([aiLmsux]+)\)(.*)') def _regex(kind, pat, globsuffix):