aboutsummaryrefslogtreecommitdiff
path: root/skip_ci.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-03-04 17:16:11 -0500
committerEli Schwartz <eschwartz@archlinux.org>2021-03-04 17:16:11 -0500
commit6a0fabc6472f49621260de215f128a31ae70219b (patch)
tree6a67908358a2c5e5baa215fe0201dfe213dd8a01 /skip_ci.py
parent4340bf34faca7eed8076ba4c388fbe15355f2183 (diff)
downloadmeson-6a0fabc6472f49621260de215f128a31ae70219b.zip
meson-6a0fabc6472f49621260de215f128a31ae70219b.tar.gz
meson-6a0fabc6472f49621260de215f128a31ae70219b.tar.bz2
mass rewrite of string formatting to use f-strings everywhere
performed by running "pyupgrade --py36-plus" and committing the results
Diffstat (limited to 'skip_ci.py')
-rwxr-xr-xskip_ci.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/skip_ci.py b/skip_ci.py
index 4ee4466..7411d57 100755
--- a/skip_ci.py
+++ b/skip_ci.py
@@ -23,16 +23,16 @@ import traceback
def check_pr(is_pr_env):
if is_pr_env not in os.environ:
- print('This is not pull request: {} is not set'.format(is_pr_env))
+ print(f'This is not pull request: {is_pr_env} is not set')
sys.exit()
elif os.environ[is_pr_env] == 'false':
- print('This is not pull request: {} is false'.format(is_pr_env))
+ print(f'This is not pull request: {is_pr_env} is false')
sys.exit()
def get_base_branch(base_env):
if base_env not in os.environ:
- print('Unable to determine base branch: {} is not set'.format(base_env))
+ print(f'Unable to determine base branch: {base_env} is not set')
sys.exit()
return os.environ[base_env]