mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 21:28:44 +00:00
ruff: Fix UP032 Use f-string instead of format call.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 50e6cba1af)
This commit is contained in:
committed by
Alex Vandiver
parent
2e9544a9a5
commit
8fdcadb08a
@@ -27,8 +27,8 @@ link_regex = re.compile(
|
||||
|
||||
# Use Chrome User-Agent, since some sites refuse to work on old browsers
|
||||
ZULIP_URL_PREVIEW_USER_AGENT = (
|
||||
"Mozilla/5.0 (compatible; ZulipURLPreview/{version}; +{external_host})"
|
||||
).format(version=ZULIP_VERSION, external_host=settings.ROOT_DOMAIN_URI)
|
||||
f"Mozilla/5.0 (compatible; ZulipURLPreview/{ZULIP_VERSION}; +{settings.ROOT_DOMAIN_URI})"
|
||||
)
|
||||
|
||||
# FIXME: This header and timeout are not used by pyoembed, when trying to autodiscover!
|
||||
HEADERS = {"User-Agent": ZULIP_URL_PREVIEW_USER_AGENT}
|
||||
|
||||
Reference in New Issue
Block a user