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

Generated by pyupgrade --py36-plus --keep-percent-format, with more
restrictions patched out.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-06-09 21:40:53 -07:00
committed by Tim Abbott
parent 7b2255597c
commit 6480deaf27
27 changed files with 60 additions and 156 deletions

View File

@@ -145,9 +145,7 @@ def get_fork_body(payload: Dict[str, Any]) -> str:
)
def get_deployment_body(payload: Dict[str, Any]) -> str:
return '{} created new deployment.'.format(
get_sender_name(payload),
)
return f'{get_sender_name(payload)} created new deployment.'
def get_change_deployment_status_body(payload: Dict[str, Any]) -> str:
return 'Deployment changed status to {}.'.format(