From 25a59a540a652511f38425a31130dcd85b105166 Mon Sep 17 00:00:00 2001 From: Patrik Teivonen Date: Wed, 22 Jun 2022 15:09:08 +0300 Subject: 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 --- packaging-tools/bld_openssl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packaging-tools/bld_openssl.py') 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', '/?']) -- cgit v1.2.3