Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-01-04 21:03:22 +0100
committerCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-01-06 14:51:48 +0100
commitd9f344fcef6bec04a787f9ea9f4ea94f15eaa26c (patch)
tree212261cffc6086e77a9731f3e23e8d12e6715b5e /sources/pyside-tools/pyside_tool.py
parentb6d1b76b46d7b756f7cb01361037e1cb5efc990a (diff)
sources: migration from format() to f-strings
This should be the last patch related the usage of f-strings from the 'sources' directory. Pick-to: 6.0 Change-Id: I0288d720dc4930dee088ca3396a66d1b3ba18f76 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
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)