match: make the FLAG_RE pattern a raw string stable
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 22 Nov 2022 11:55:26 -0500
branchstable
changeset 49645 c4874ebe8644
parent 49641 f09bc2ed9100
child 49647 c217d94cdd9d
match: make the FLAG_RE pattern a raw string PyCharm was complaining about invalid escape sequences since this was added recently in 3eda36e9b3d6.
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):