aboutsummaryrefslogtreecommitdiff
path: root/scripts/maint/format_changelog.py
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2023-12-11 20:18:32 +0000
committerAlexander Færøy <ahf@torproject.org>2023-12-11 20:18:32 +0000
commit0cccc7223c52512b5e0f47819f1a02740e5dad9b (patch)
treeb6c1d4efada1f925fb5e30b4e0b62a6edd59b3d2 /scripts/maint/format_changelog.py
parent82e73df8f7db9e8c33dd9b1d65cc6b235656f893 (diff)
parent9f731ac68cd0409c321860a4d484bfd4c3e3f851 (diff)
downloadtor-0cccc7223c52512b5e0f47819f1a02740e5dad9b.tar.gz
tor-0cccc7223c52512b5e0f47819f1a02740e5dad9b.zip
Merge branch 'fix-python-escs' into 'main'
Use raw strings for regexs containing escapes See merge request tpo/core/tor!790
Diffstat (limited to 'scripts/maint/format_changelog.py')
-rwxr-xr-xscripts/maint/format_changelog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/maint/format_changelog.py b/scripts/maint/format_changelog.py
index 32b47ffcbb..cab34ab751 100755
--- a/scripts/maint/format_changelog.py
+++ b/scripts/maint/format_changelog.py
@@ -416,7 +416,7 @@ ISSUE_PREFIX_MAP = {
}
# Let's turn bugs to html.
-BUG_PAT = re.compile('(bug|ticket|issue|feature)\s+([\w/]+#)?(\d{4,6})', re.I)
+BUG_PAT = re.compile(r'(bug|ticket|issue|feature)\s+([\w/]+#)?(\d{4,6})', re.I)
def bug_html(m):
kind = m.group(1)
prefix = m.group(2) or ""