aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2/__init__.py.in
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2020-11-02 12:50:00 +0100
committerChristian Tismer <tismer@stackless.com>2020-11-02 13:26:38 +0000
commit6e3e7b9ca0548430aaa5e2555d6e02c64625fa3f (patch)
treea821c90747c2376d1396a4bf58330f8b41ccbaad /sources/pyside2/PySide2/__init__.py.in
parent4544a943ca2df4e6f0ac24914f0c0f844dc6f748 (diff)
replace **locals by f-strings where possible
This change affects mostly only my own sources which were prepared for the migration to Python 3.6 . Task-number: PYSIDE-904 Change-Id: I0c2cd59f6f625f51f876099c33005ac70ca39db9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside2/PySide2/__init__.py.in')
-rw-r--r--sources/pyside2/PySide2/__init__.py.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/pyside2/PySide2/__init__.py.in b/sources/pyside2/PySide2/__init__.py.in
index 89c47ae80..f062c284a 100644
--- a/sources/pyside2/PySide2/__init__.py.in
+++ b/sources/pyside2/PySide2/__init__.py.in
@@ -68,7 +68,8 @@ def _setupQtDirectories():
# We now use an explicit function instead of touching a signature.
_init_pyside_extension()
except AttributeError:
- print(dedent('''\
+ stars = 79 * "*"
+ print(dedent(f'''\
{stars}
PySide2/__init__.py: The `signature` module was not initialized.
This libshiboken module was loaded from
@@ -77,7 +78,7 @@ def _setupQtDirectories():
Please make sure that this is the real shiboken6 binary and not just a folder.
{stars}
- ''').format(stars=79*"*", **locals()), file=sys.stderr)
+ '''), file=sys.stderr)
raise
if sys.platform == 'win32':