Skip to content

Commit b88eb88

Browse files
committed
changelog-generator: Fixed syntax error in regex
Fixed a syntax error in changelog-generator script regex by making it a raw string. The syntax error appeared while executing the script with Python 3.12.3. Signed-off-by: Lars Erik Wik <[email protected]>
1 parent eacfa19 commit b88eb88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/changelog-generator/changelog-generator

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ for repo in repos:
189189
del ENTRIES[linked_sha]
190190
continue
191191

192-
match = re.match("^\(cherry picked from commit ([0-9a-f]+)\)", line, re.IGNORECASE)
192+
match = re.match(r"^\(cherry picked from commit ([0-9a-f]+)\)", line, re.IGNORECASE)
193193
if match:
194194
if log_entry:
195195
add_entry(sha, log_entry)

0 commit comments

Comments
 (0)