[elbe-devel] [PATCH v2 26/75] kernel: use f-strings
Daniel Braunwarth
daniel at braunwarth.dev
Wed Nov 2 20:14:08 CET 2022
Signed-off-by: Daniel Braunwarth <daniel at braunwarth.dev>
---
elbepack/debianize/panels/kernel.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/elbepack/debianize/panels/kernel.py b/elbepack/debianize/panels/kernel.py
index f37ef0745..74519e9c6 100644
--- a/elbepack/debianize/panels/kernel.py
+++ b/elbepack/debianize/panels/kernel.py
@@ -71,7 +71,7 @@ class Kernel(Panel):
self.tmpl_dir = os.path.join(mako_template_dir, 'debianize/kernel')
pkg_name = self.deb['k_version'] + '-' + self.deb['p_name']
self.deb['in_kernel_firmware'] = int(parse_version(self.deb['k_version']) <= parse_version('v4.13'))
- self.image_dst = 'debian/linux-image-%s.install' % pkg_name
+ self.image_dst = f'debian/linux-image-{pkg_name}.install'
for tmpl in [
'control',
@@ -100,8 +100,8 @@ class Kernel(Panel):
copyfile(os.path.join(self.tmpl_dir, 'linux-libc-dev.install'),
'debian/linux-libc-dev-' + pkg_name + '.install')
- self.hint = "use 'dpkg-buildpackage -a%s' to build the package" % (
- self.deb['p_arch'])
+ self.hint = (f"use 'dpkg-buildpackage -a{self.deb['p_arch']}' "
+ "to build the package")
if not self.deb['in_kernel_firmware']:
Kernel.pattern_delete(self.image_dst, "firmware")
--
2.38.1
More information about the elbe-devel
mailing list