aboutsummaryrefslogtreecommitdiff
path: root/test cases/python
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 /test cases/python
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 'test cases/python')
-rwxr-xr-xtest cases/python/2 extmodule/blaster.py2
-rw-r--r--test cases/python/4 custom target depends extmodule/blaster.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/test cases/python/2 extmodule/blaster.py b/test cases/python/2 extmodule/blaster.py
index 1f01876..aaac984 100755
--- a/test cases/python/2 extmodule/blaster.py
+++ b/test cases/python/2 extmodule/blaster.py
@@ -8,4 +8,4 @@ if not isinstance(result, int):
raise SystemExit('Returned result not an integer.')
if result != 1:
- raise SystemExit('Returned result {} is not 1.'.format(result))
+ raise SystemExit(f'Returned result {result} is not 1.')
diff --git a/test cases/python/4 custom target depends extmodule/blaster.py b/test cases/python/4 custom target depends extmodule/blaster.py
index 09039cb..61b11f9 100644
--- a/test cases/python/4 custom target depends extmodule/blaster.py
+++ b/test cases/python/4 custom target depends extmodule/blaster.py
@@ -27,4 +27,4 @@ if not isinstance(result, int):
raise SystemExit('Returned result not an integer.')
if result != 1:
- raise SystemExit('Returned result {} is not 1.'.format(result))
+ raise SystemExit(f'Returned result {result} is not 1.')