aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/registry/init_platform.py
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/pyside6/tests/registry/init_platform.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/pyside6/tests/registry/init_platform.py')
-rw-r--r--sources/pyside6/tests/registry/init_platform.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sources/pyside6/tests/registry/init_platform.py b/sources/pyside6/tests/registry/init_platform.py
index bceb80190..90a7a21a8 100644
--- a/sources/pyside6/tests/registry/init_platform.py
+++ b/sources/pyside6/tests/registry/init_platform.py
@@ -85,7 +85,7 @@ elif os.path.exists(history_dir):
try:
all_build_dir = f_contents_split[0]
except IndexError:
- print("Error: can't find the build dir in the given file '{}'".format(fpath))
+ print(f"Error: can't find the build dir in the given file '{fpath}'")
sys.exit(1)
else:
print(dedent("""
@@ -244,8 +244,7 @@ def generate_all():
def __main__():
- print("+++ generating {}. You should probably check this file in."
- .format(get_refpath()))
+ print(f"+++ generating {get_refpath()}. You should probably check this file in.")
generate_all()