From: Richard Purdie <richard.pur...@linuxfoundation.org> The backslash characters cause syntax warnings, mark the strings are raw to avoid this.
Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-bri...@bootlin.com> Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org> (cherry picked from commit f717f61a37ed83618d054fc4017b5f5386fb2e3c) Signed-off-by: Steve Sakoman <st...@sakoman.com> --- meta/lib/oeqa/utils/gitarchive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, keyws['tag_number'] = '{tag_number}' tag_re = format_str(name_pattern, keyws) # Replace parentheses for proper regex matching - tag_re = tag_re.replace('(', '\(').replace(')', '\)') + '$' + tag_re = tag_re.replace('(', r'\(').replace(')', r'\)') + '$' # Inject regex group pattern for 'tag_number' tag_re = tag_re.format(tag_number='(?P<tag_number>[0-9]{1,5})') -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#211010): https://lists.openembedded.org/g/openembedded-core/message/211010 Mute This Topic: https://lists.openembedded.org/mt/111061327/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-