From 3c1a6f732a3a2c69e7133d07b89db0bdd788316b Mon Sep 17 00:00:00 2001 From: Cristian Maureira-Fredes Date: Wed, 12 May 2021 17:10:35 +0200 Subject: examples: clean and improve code - removing '\' from long lines, - use f-strings instead of concatenating strings - Use f-strings instead of the old '%' formatting Task-number: PYSIDE-841 Change-Id: I4983c25a6272e10119d5d1a74c180828ca6f64e6 Reviewed-by: Christian Tismer --- examples/samplebinding/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/samplebinding/main.py') diff --git a/examples/samplebinding/main.py b/examples/samplebinding/main.py index f6f9f1fa9..bc5e16eec 100644 --- a/examples/samplebinding/main.py +++ b/examples/samplebinding/main.py @@ -64,7 +64,7 @@ class VanillaChocolateCherryIcecream(VanillaChocolateIcecream): def getFlavor(self): base_flavor = super(VanillaChocolateCherryIcecream, self).getFlavor() - return base_flavor + " and a cherry" + return f"{base_flavor} and a cherry" if __name__ == '__main__': -- cgit v1.2.3