contrib: fix invalid escape sequence in "find-backports"

Fixes: 57cfa5daf9 ('contrib: add "find-backports" script')
This commit is contained in:
Thomas Haller 2023-11-20 17:13:35 +01:00
parent 1054d3bce0
commit 1d241f5295
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -221,7 +221,7 @@ def git_ref_commit_body_get_cherry_picked_one(ref):
body = git_ref_commit_body(ref)
result = None
for r in [
re_bin("\(cherry picked from commit ([0-9a-z]+)\)"),
re_bin("\\(cherry picked from commit ([0-9a-z]+)\\)"),
re_bin("\\bIgnore-Backport: *([0-9a-z]+)\\b"),
]:
for mo in re.finditer(r, body):