python: Convert more percent formatting to "".format.

Semgrep has gotten a little more clever at applying the percent
formatting rule.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-09 16:57:43 -07:00
parent fff7fe21cb
commit 6189e4d0c1
6 changed files with 59 additions and 55 deletions

View File

@@ -20,12 +20,12 @@ def get_version_file() -> str:
PREAMBLE = '''
Before we run tests, we make sure your provisioning version
is correct by looking at var/provision_version, which is at
version %s, and we compare it to the version in source
control (version.py), which is %s.
version {}, and we compare it to the version in source
control (version.py), which is {}.
'''
def preamble(version: str) -> str:
text = PREAMBLE % (version, PROVISION_VERSION)
text = PREAMBLE.format(version, PROVISION_VERSION)
text += '\n'
return text