mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user