[elbe-devel] [PATCH 03/10] pbuilder: Fix Pylint

Christian Teklenborg chris at linutronix.de
Tue Jun 22 16:52:27 CEST 2021


181:0: W0311: (Bad indentation)
182:0: W0311: (Bad indentation)
185:0: W0311: (Bad indentation)
186:0: W0311: (Bad indentation)
188:0: W0311: (Bad indentation)
190:0: W0311: (Bad indentation)
194:0: W0311: (Bad indentation)
196:0: C0325: (Unnecessary parens after 'return' keyword)

Signed-off-by: Christian Teklenborg <chris at linutronix.de>
---
 elbepack/pbuilder.py | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/elbepack/pbuilder.py b/elbepack/pbuilder.py
index 82cf4356..ffb24fce 100644
--- a/elbepack/pbuilder.py
+++ b/elbepack/pbuilder.py
@@ -178,19 +178,19 @@ def get_apt_keys(builddir, xml):
 
         for url in xml.prj.node("mirror/url-list"):
 
-             if url.has("options"):
-                 options = "[%s]" % ' '.join([opt.et.text.strip(' \t\n')
-                                              for opt
-                                              in url.all("options/option")])
-             else:
-                 options = ""
+            if url.has("options"):
+                options = "[%s]" % ' '.join([opt.et.text.strip(' \t\n')
+                                             for opt
+                                             in url.all("options/option")])
+            else:
+                options = ""
 
-             if url.has("raw-key") and not "trusted=yes" in options:
+            if url.has("raw-key") and not "trusted=yes" in options:
 
-                 key = "\n".join(line.strip(" \t")
-                                 for line
-                                 in url.text('raw-key').splitlines()[1:-1])
+                key = "\n".join(line.strip(" \t")
+                                for line
+                                in url.text('raw-key').splitlines()[1:-1])
 
-                 keys.append(key)
+                keys.append(key)
 
-    return (keys)
+    return keys
-- 
2.20.1



More information about the elbe-devel mailing list