[elbe-devel] [PATCH 05/75] commands init: Fix Pylint

Torben Hohn torben.hohn at linutronix.de
Fri May 29 10:45:11 CEST 2020


On Mon, May 25, 2020 at 11:41:58AM -0400, Olivier Dion wrote:
> 220:15: R1714: (consider-using-in)
> 
> Signed-off-by: Olivier Dion <dion at linutronix.de>

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>

> ---
>  elbepack/commands/init.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/elbepack/commands/init.py b/elbepack/commands/init.py
> index a97d45df..45e90602 100644
> --- a/elbepack/commands/init.py
> +++ b/elbepack/commands/init.py
> @@ -217,7 +217,7 @@ def run_command(argv):
>          for t in templates:
>              o = t.replace(".mako", "")
>  
> -            if t == "Makefile.mako" or t == "libvirt.xml.mako":
> +            if t in ("Makefile.mako", "libvirt.xml.mako"):
>                  write_template(
>                      os.path.join(
>                          opt.directory, o), os.path.join(
> -- 
> 2.26.2
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.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



More information about the elbe-devel mailing list