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/send_header_diff_kmail.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/send_header_diff_kmail.py')
-rwxr-xr-x | packaging-tools/send_header_diff_kmail.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging-tools/send_header_diff_kmail.py b/packaging-tools/send_header_diff_kmail.py index 10c3cba0b..abbafaffe 100755 --- a/packaging-tools/send_header_diff_kmail.py +++ b/packaging-tools/send_header_diff_kmail.py @@ -60,11 +60,11 @@ from subprocess import check_call def send_headers(version, message_id, simulate): receiver = 'development@qt-project.org' subject = 'Qt ' + version + ' header diff: ' - print("Header diff:", subject) + print(f"Header diff: {subject}") for diff in os.listdir('.'): if diff.endswith('.diff'): - print('Sending: ', diff) + print(f'Sending: {diff}') s = subject + diff h1 = 'In-Reply-To:<' + message_id + '>' h2 = 'References:<' + message_id + '>' |