python: Mark regexes as raw strings.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-04-26 11:30:22 -07:00
committed by Anders Kaseorg
parent 84db245e3f
commit 96fbe060a6
32 changed files with 76 additions and 74 deletions

View File

@@ -36,7 +36,7 @@ def get_email_gateway_message_string_from_address(address: str) -> str:
if settings.EMAIL_GATEWAY_EXTRA_PATTERN_HACK:
# Accept mails delivered to any Zulip server
pattern_parts[-1] = settings.EMAIL_GATEWAY_EXTRA_PATTERN_HACK
match_email_re = re.compile("(.*?)".join(pattern_parts))
match_email_re = re.compile(r"(.*?)".join(pattern_parts))
match = match_email_re.match(address)
if not match: