[elbe-devel] [PATCH v2 03/12] pbuilder: Fix Pylint
Torben Hohn
torben.hohn at linutronix.de
Thu Jul 22 17:10:03 CEST 2021
From: Christian Teklenborg <chris at linutronix.de>
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>
Reviewed-by: Torben Hohn <torben.hohn 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 82cf43562..ffb24fced 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