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

Olivier Dion dion at linutronix.de
Mon May 25 17:41:58 CEST 2020


220:15: R1714: (consider-using-in)

Signed-off-by: Olivier Dion <dion 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




More information about the elbe-devel mailing list