diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2021-03-04 17:16:11 -0500 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-03-04 17:16:11 -0500 |
| commit | 6a0fabc6472f49621260de215f128a31ae70219b (patch) | |
| tree | 6a67908358a2c5e5baa215fe0201dfe213dd8a01 /test cases/python3 | |
| parent | 4340bf34faca7eed8076ba4c388fbe15355f2183 (diff) | |
| download | meson-6a0fabc6472f49621260de215f128a31ae70219b.tar.gz | |
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/python3')
| -rwxr-xr-x | test cases/python3/2 extmodule/blaster.py | 2 | ||||
| -rw-r--r-- | test cases/python3/4 custom target depends extmodule/blaster.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test cases/python3/2 extmodule/blaster.py b/test cases/python3/2 extmodule/blaster.py index 7e1eae63a..529b02840 100755 --- a/test cases/python3/2 extmodule/blaster.py +++ b/test cases/python3/2 extmodule/blaster.py @@ -10,5 +10,5 @@ if not isinstance(result, int): sys.exit(1) if result != 1: - print('Returned result {} is not 1.'.format(result)) + print(f'Returned result {result} is not 1.') sys.exit(1) diff --git a/test cases/python3/4 custom target depends extmodule/blaster.py b/test cases/python3/4 custom target depends extmodule/blaster.py index 49be46644..d2c93ad03 100644 --- a/test cases/python3/4 custom target depends extmodule/blaster.py +++ b/test cases/python3/4 custom target depends extmodule/blaster.py @@ -28,5 +28,5 @@ if not isinstance(result, int): sys.exit(1) if result != 1: - print('Returned result {} is not 1.'.format(result)) + print(f'Returned result {result} is not 1.') sys.exit(1) |
