[elbe-devel] [PATCH 27/75] uboot: use f-strings
Daniel Braunwarth
daniel at braunwarth.dev
Wed Nov 2 20:01:37 CET 2022
Signed-off-by: Daniel Braunwarth <daniel at braunwarth.dev>
---
elbepack/debianize/panels/uboot.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/elbepack/debianize/panels/uboot.py b/elbepack/debianize/panels/uboot.py
index f6a52a79d..ca55d6353 100644
--- a/elbepack/debianize/panels/uboot.py
+++ b/elbepack/debianize/panels/uboot.py
@@ -56,7 +56,7 @@ class UBoot(Panel):
# With v2014.04 the u-boot Makefile knows the 'tools-only' target.
if V(self.verstr) < V('2014.04'):
TUI.printf("Only U-Boot >= 2014.04 is supported.\n"
- "This is version '%s'" % self.verstr)
+ f"This is version '{self.verstr}'")
if V(self.verstr) >= V('2017.09'):
self.deb['envtools'] = 'envtools'
@@ -87,4 +87,6 @@ class UBoot(Panel):
copyfile(os.path.join(self.tmpl_dir, 'u-boot-tools.install'),
'debian/u-boot-tools-' + pkg_name + '.install')
- TUI.printf("use 'dpkg-buildpackage -a%s' to build the package" % self.deb['p_arch'])
+ TUI.printf(
+ f"use 'dpkg-buildpackage -a{self.deb['p_arch']}' "
+ "to build the package")
--
2.38.1
More information about the elbe-devel
mailing list