diff options
author | Patrik Teivonen <patrik.teivonen@qt.io> | 2022-06-22 15:09:08 +0300 |
---|---|---|
committer | Patrik Teivonen <patrik.teivonen@qt.io> | 2022-08-16 09:23:54 +0000 |
commit | 25a59a540a652511f38425a31130dcd85b105166 (patch) | |
tree | 3d95c0c7238606a9e8f07d2ac4db598b90448743 /packaging-tools/bld_openssl.py | |
parent | 08d6d621822c803d41359348133bd37eae5f370d (diff) |
pylint: Add string formatting checks, use f-string and lazy % formatting
Enable following checks in pylint:
- C0209: Formatting a regular string which could be a f-string
- W1202: Use lazy % formatting in logging functions
- W1203: Use lazy % formatting in logging functions
Use f-string for string formatting where recommended and lazy % formatting in logging.
Change-Id: I14924d27e0f800c47af1ec903be4c51f24191d26
Reviewed-by: Antti Kokko <antti.kokko@qt.io>
Diffstat (limited to 'packaging-tools/bld_openssl.py')
-rw-r--r-- | packaging-tools/bld_openssl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging-tools/bld_openssl.py b/packaging-tools/bld_openssl.py index 4993f6ec0..6ca28a582 100644 --- a/packaging-tools/bld_openssl.py +++ b/packaging-tools/bld_openssl.py @@ -64,7 +64,7 @@ def check_environment(): def check_cmd(cmd): if subprocess.call(cmd, stdout=FNULL, stderr=FNULL) != 0: - print('*** Cannot execute {0}'.format(cmd[0])) + print(f"*** Cannot execute {cmd[0]}") exit(1) check_cmd(['nasm', '-h']) check_cmd(['nmake', '/?']) |