aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools/pyside_tool.py
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-01-04 21:03:22 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-01-06 15:34:36 +0000
commit5ea0fde59719866f6eb86a4fe4e33d7f389802c5 (patch)
treedb7305af8d7642b4fddf032ece79dc65d2c95ad4 /sources/pyside-tools/pyside_tool.py
parentb9a89e1f3c8d0b80cc91bf1d277ead3b7857dabd (diff)
sources: migration from format() to f-strings
This should be the last patch related the usage of f-strings from the 'sources' directory. Change-Id: I0288d720dc4930dee088ca3396a66d1b3ba18f76 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit d9f344fcef6bec04a787f9ea9f4ea94f15eaa26c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'sources/pyside-tools/pyside_tool.py')
-rw-r--r--sources/pyside-tools/pyside_tool.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside-tools/pyside_tool.py b/sources/pyside-tools/pyside_tool.py
index 15db6c4aa..485520f5d 100644
--- a/sources/pyside-tools/pyside_tool.py
+++ b/sources/pyside-tools/pyside_tool.py
@@ -66,7 +66,8 @@ def qt_tool_wrapper(qt_tool, args):
out, err = proc.communicate()
if err:
msg = err.decode("utf-8")
- print("Error: {}\nwhile executing '{}'".format(msg, ' '.join(cmd)))
+ command = ' '.join(cmd)
+ print(f"Error: {msg}\nwhile executing '{command}'")
sys.exit(proc.returncode)