[elbe-devel] [PATCH 30/37] flake8: Test for membership should be 'not in' (E713)

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


Am Mittwoch, dem 07.02.2024 um 15:28 +0100 schrieb Benedikt Spranger:
> Target all flake8 E713 warnings.
> 
> Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>
Reviewed-by: Eduard Krein <eduard.krein at linutronix.de>
> ---
>  elbepack/pbuilder.py | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/elbepack/pbuilder.py b/elbepack/pbuilder.py
> index d5462680..e99df97b 100644
> --- a/elbepack/pbuilder.py
> +++ b/elbepack/pbuilder.py
> @@ -174,7 +174,10 @@ def get_apt_keys(builddir, xml):
>              else:
>                  options = ""
>  
> -            if url.has("raw-key") and not "trusted=yes" in options:
> +            if "trusted=yes" in options:
> +                continue
> +
> +            if url.has("raw-key"):
>  
>                  key = "\n".join(line.strip(" \t")
>                                  for line

-- 
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