changeset 49645:c4874ebe8644 stable

match: make the FLAG_RE pattern a raw string PyCharm was complaining about invalid escape sequences since this was added recently in 3eda36e9b3d6.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 22 Nov 2022 11:55:26 -0500
parents f09bc2ed9100
children c217d94cdd9d
files mercurial/match.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):