diff options
author | Alexander Færøy <ahf@torproject.org> | 2023-12-11 20:18:32 +0000 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2023-12-11 20:18:32 +0000 |
commit | 0cccc7223c52512b5e0f47819f1a02740e5dad9b (patch) | |
tree | b6c1d4efada1f925fb5e30b4e0b62a6edd59b3d2 /scripts/maint/format_changelog.py | |
parent | 82e73df8f7db9e8c33dd9b1d65cc6b235656f893 (diff) | |
parent | 9f731ac68cd0409c321860a4d484bfd4c3e3f851 (diff) | |
download | tor-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-x | scripts/maint/format_changelog.py | 2 |
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 "" |