Re: [PATCH] patman: Resolve python string vs. regex escaping syntax

2024-07-28 Thread Simon Glass
On Fri, 26 Jul 2024 at 13:03, Brian Norris wrote: > > Python strings have their own notion of backslash-escaping, and that can > conflict with the intentions for strings passed to the 're' module. In > particular, I get warnings like this: > > tools/patman/../patman/commit.py:9: SyntaxWarning: inv

[PATCH] patman: Resolve python string vs. regex escaping syntax

2024-07-26 Thread Brian Norris
Python strings have their own notion of backslash-escaping, and that can conflict with the intentions for strings passed to the 're' module. In particular, I get warnings like this: tools/patman/../patman/commit.py:9: SyntaxWarning: invalid escape sequence '\s' re_subject_tag = re.compile('([^:\