python: Convert "".format to Python 3.6 f-strings.

Generated by pyupgrade --py36-plus --keep-percent-format, but with the
NamedTuple changes reverted (see commit
ba7906a3c6, #15132).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-06-08 15:25:09 -07:00
parent 8c15081069
commit 8dd83228e7
146 changed files with 596 additions and 596 deletions

View File

@@ -139,9 +139,9 @@ class BotIntegration(Integration):
self.logo_url = staticfiles_storage.url(logo)
if display_name is None:
display_name = "{} Bot".format(name.title()) # nocoverage
display_name = f"{name.title()} Bot" # nocoverage
else:
display_name = "{} Bot".format(display_name)
display_name = f"{display_name} Bot"
self.display_name = display_name
if doc is None:
@@ -235,7 +235,7 @@ class HubotIntegration(Integration):
logo_alt: Optional[str]=None, git_url: Optional[str]=None,
legacy: bool=False) -> None:
if logo_alt is None:
logo_alt = "{} logo".format(name.title())
logo_alt = f"{name.title()} logo"
self.logo_alt = logo_alt
if git_url is None: