[elbe-devel] [PATCH 11/25] pylint: elbeproject: remove unnecessary parenthesis

Torben Hohn torben.hohn at linutronix.de
Wed Aug 22 10:42:12 CEST 2018


pylint complains:
elbepack/elbeproject.py:418: [C0325(superfluous-parens), ] Unnecessary parens after 'if' keyword

remove parens

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/elbeproject.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index 203d6536..0c9cd22b 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -416,7 +416,7 @@ class ElbeProject (object):
             m = ValidationMode.CHECK_ALL
         self.xml.validate_apt_sources(m, self.arch)
 
-        if (self.xml.has('target/pbuilder') and not skip_pbuild):
+        if self.xml.has('target/pbuilder') and not skip_pbuild:
             if not os.path.exists(os.path.join(self.builddir, "pbuilder")):
                 self.create_pbuilder()
             for p in self.xml.node('target/pbuilder'):
-- 
2.11.0




More information about the elbe-devel mailing list