Skip to content

Commit 0072e97

Browse files
committed
changelog-generator: Fixed syntax error in regex
Fixed syntax error in regex by changing it into a raw string. ``` $ misc/changelog-generator/changelog-generator --repo 3.25.0..master /home/larsewi/ntech/cfengine/core/misc/changelog-generator/changelog-generator:192: SyntaxWarning: invalid escape sequence '\(' match = re.match("^\(cherry picked from commit ([0-9a-f]+)\)", line, re.IGNORECASE) ``` Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 7e48480 commit 0072e97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/changelog-generator/changelog-generator

Lines changed: 1 addition & 1 deletion
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)