[elbe-devel] [PATCH 29/37] flake8: Line too long (E501)
Benedikt Spranger
b.spranger at linutronix.de
Wed Feb 7 15:28:56 CET 2024
Two lines are too long (> 100 char) but cannot be split without harm.
Annotate these lines.
Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>
---
elbepack/hdimg.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/elbepack/hdimg.py b/elbepack/hdimg.py
index f45867af..3b457c6c 100644
--- a/elbepack/hdimg.py
+++ b/elbepack/hdimg.py
@@ -264,8 +264,8 @@ class grubinstaller97(grubinstaller_base):
# FIXME - Pylint says: Using possibly undefined loop
# variable 'entry' (undefined-loop-variable). entry is
# defined in the previous for-loop.
- do(rf'chroot {imagemnt} sed -in "s/^# groot=.*$/# groot=\(hd0,{bootentry - 1}\)/" /boot/grub/menu.lst')
- do(rf'chroot {imagemnt} sed -in "s/^# kopt=.*$/# kopt=root=LABEL={bootentry_label}/" /boot/grub/menu.lst')
+ do(rf'chroot {imagemnt} sed -in "s/^# groot=.*$/# groot=\(hd0,{bootentry - 1}\)/" /boot/grub/menu.lst') # noqa: E501
+ do(rf'chroot {imagemnt} sed -in "s/^# kopt=.*$/# kopt=root=LABEL={bootentry_label}/" /boot/grub/menu.lst') # noqa: E501
chroot(imagemnt, "update-grub")
--
2.43.0
More information about the elbe-devel
mailing list