diff options
author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-05-12 14:27:15 +0200 |
---|---|---|
committer | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-05-12 20:33:36 +0200 |
commit | c5db9d63277201ee58829f7eb0656c534d04c249 (patch) | |
tree | ef67e9547943c49497bffc52d041bb2aa93243a7 /examples/utils | |
parent | 7118ab7a34b1c3c6a9b0b1d29e0a9d2011a2d887 (diff) |
examples: use f-strings
Change-Id: I0360f1476af666494c730e4f3c8f4f3c562abc09
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'examples/utils')
-rw-r--r-- | examples/utils/pyside_config.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/utils/pyside_config.py b/examples/utils/pyside_config.py index 523879c12..02d4a5da2 100644 --- a/examples/utils/pyside_config.py +++ b/examples/utils/pyside_config.py @@ -126,16 +126,16 @@ for i, (flag, _, _, description) in enumerate(options): if i < len(options) - 1: options_usage += '\n' -usage = """ +usage = f""" Utility to determine include/link options of shiboken/PySide and Python for qmake/CMake projects that would like to embed or build custom shiboken/PySide bindings. Usage: pyside_config.py [option] Options: -{} +{options_usage} -a Print all options and their values --help/-h Print this help -""".format(options_usage) +""" option = sys.argv[1] if len(sys.argv) == 2 else '-a' if option == '-h' or option == '--help': @@ -300,7 +300,7 @@ def get_package_include_path(which_package): if package_path is None: return None - includes = "{0}/include".format(package_path) + includes = f"{package_path}/include" return includes |