From 6cc55fefc8ddf12ecc9dcce33e367148e6216b1f Mon Sep 17 00:00:00 2001 From: Cristian Maureira-Fredes Date: Tue, 29 Dec 2020 18:22:54 +0100 Subject: build_scripts: use f-strings instead of format() Pick-to: 6.0 Change-Id: I165e9a39f968f67f9eae3a632739908d5f8fda59 Reviewed-by: Friedemann Kleint Reviewed-by: Christian Tismer --- build_scripts/qtinfo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build_scripts/qtinfo.py') diff --git a/build_scripts/qtinfo.py b/build_scripts/qtinfo.py index 4ab3b8ede..6c20f3f9d 100644 --- a/build_scripts/qtinfo.py +++ b/build_scripts/qtinfo.py @@ -55,7 +55,7 @@ def _effective_qmake_command(qmake, qt_version): sys.exit(-1) # Set -qt=X here. if "qtchooser" in os.readlink(qmake): - result.append("-qt={}".format(qt_version)) + result.append(f"-qt={qt_version}") return result @@ -74,7 +74,7 @@ class QtInfo(object): def get_qmake_command(self): qmake_command_string = self._qmake_command[0] for entry in self._qmake_command[1:]: - qmake_command_string += " {}".format(entry) + qmake_command_string = f"{qmake_command_string} {entry}" return qmake_command_string def get_version(self): -- cgit v1.2.3