diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-03 13:43:30 +0000 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-02-12 06:29:34 -0800 |
commit | e35b91ea4d49cad0fccacdbcdbe14bae020669ec (patch) | |
tree | 28fe7aa22e7dc8c90651fc95a59dffadf0c577d9 | |
parent | d78b78df916d3b46727fc6a21e35a2d3aa60e18b (diff) | |
download | poky-e35b91ea4d49cad0fccacdbcdbe14bae020669ec.tar.gz |
oeqa/gitarchive: Fix syntax warning
The backslash characters cause syntax warnings, mark the strings are raw
to avoid this.
(From OE-Core rev: abbe836162a24de5f22b38e8a2e547607e429820)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f717f61a37ed83618d054fc4017b5f5386fb2e3c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/lib/oeqa/utils/gitarchive.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/gitarchive.py b/meta/lib/oeqa/utils/gitarchive.py index a826646059..7e1d505748 100644 --- a/meta/lib/oeqa/utils/gitarchive.py +++ b/meta/lib/oeqa/utils/gitarchive.py | |||
@@ -146,7 +146,7 @@ def expand_tag_strings(repo, name_pattern, msg_subj_pattern, msg_body_pattern, | |||
146 | keyws['tag_number'] = '{tag_number}' | 146 | keyws['tag_number'] = '{tag_number}' |
147 | tag_re = format_str(name_pattern, keyws) | 147 | tag_re = format_str(name_pattern, keyws) |
148 | # Replace parentheses for proper regex matching | 148 | # Replace parentheses for proper regex matching |
149 | tag_re = tag_re.replace('(', '\(').replace(')', '\)') + '$' | 149 | tag_re = tag_re.replace('(', r'\(').replace(')', r'\)') + '$' |
150 | # Inject regex group pattern for 'tag_number' | 150 | # Inject regex group pattern for 'tag_number' |
151 | tag_re = tag_re.format(tag_number='(?P<tag_number>[0-9]{1,5})') | 151 | tag_re = tag_re.format(tag_number='(?P<tag_number>[0-9]{1,5})') |
152 | 152 | ||