[elbe-devel] [PATCH 30/37] flake8: Test for membership should be 'not in' (E713)
Benedikt Spranger
b.spranger at linutronix.de
Wed Feb 7 15:28:57 CET 2024
Target all flake8 E713 warnings.
Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>
---
elbepack/pbuilder.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/elbepack/pbuilder.py b/elbepack/pbuilder.py
index d5462680..e99df97b 100644
--- a/elbepack/pbuilder.py
+++ b/elbepack/pbuilder.py
@@ -174,7 +174,10 @@ def get_apt_keys(builddir, xml):
else:
options = ""
- if url.has("raw-key") and not "trusted=yes" in options:
+ if "trusted=yes" in options:
+ continue
+
+ if url.has("raw-key"):
key = "\n".join(line.strip(" \t")
for line
--
2.43.0
More information about the elbe-devel
mailing list