From c9f01cf8b5d5cdf969315c3a5470f339b1e1e56a Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Thu, 26 Sep 2024 13:02:01 +0200 Subject: [PATCH] Use f-string instead of concatenation Signed-off-by: Gabor Mezei --- tests/scripts/depends.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/depends.py b/tests/scripts/depends.py index 17063c4da1..7cc0f5b5ea 100755 --- a/tests/scripts/depends.py +++ b/tests/scripts/depends.py @@ -183,8 +183,8 @@ If what is False, announce that the job has failed.''' header += '#if ' if value: header += '!' - header += 'defined(' + option + ')\n' - header += '#error "' + option + '"\n' + header += f'defined({option})\n' + header += f'#error "{option}"\n' header += '#endif\n' include_path = ['include', 'tf-psa-crypto/include', 'tf-psa-crypto/drivers/builtin/include']