[elbe-devel] [PATCH 29/37] flake8: Line too long (E501)

Eduard Krein eduard.krein at linutronix.de
Wed Feb 7 16:32:02 CET 2024


Am Mittwoch, dem 07.02.2024 um 15:28 +0100 schrieb Benedikt Spranger:
> 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>
Reviewed-by: Eduard Krein <eduard.krein 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")
>  

-- 
Eduard Krein
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 19; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/legal/data-protection.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br.,HRB700
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas
Gleixner, Sharon Heck, Yulia Beck, Tiffany Silva




More information about the elbe-devel mailing list