[Buildroot] [git commit branch/2021.11.x] support/scripts/pkg-stats: fix flake8 errors

From: Peter Korsgaard <peter@korsgaard.com>
Date: 2022-01-27 16:54:50
Subsystem: the rest · Maintainer: Linus Torvalds

commit: https://git.buildroot.net/buildroot/commit/?id=29e4ff33c36ca865d9940edc16b1fd82a6006ebe
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.11.x

support/scripts/pkg-stats:1171:8: E713 test for membership should be 'not in'
support/scripts/pkg-stats:1175:8: E713 test for membership should be 'not in'
support/scripts/pkg-stats:1179:8: E713 test for membership should be 'not in'
3     E713 test for membership should be 'not in'

Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/1955772278

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <redacted>
(cherry picked from commit 02e679d8bf8acae9e110820858d1f242ff971af8)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 support/scripts/pkg-stats | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index 7e20ccc0da..abd36a3dd5 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -1168,15 +1168,15 @@ def __main__():
         pkg.set_url()
         pkg.set_ignored_cves()
         pkg.set_developers(developers)
-    if not "url" in args.disable:
+    if "url" not in args.disable:
         print("Checking URL status")
         loop = asyncio.get_event_loop()
         loop.run_until_complete(check_package_urls(packages))
-    if not "upstream" in args.disable:
+    if "upstream" not in args.disable:
         print("Getting latest versions ...")
         loop = asyncio.get_event_loop()
         loop.run_until_complete(check_package_latest_version(packages))
-    if not "cve" in args.disable and args.nvd_path:
+    if "cve" not in args.disable and args.nvd_path:
         print("Checking packages CVEs")
         check_package_cves(args.nvd_path, packages)
         check_package_cpes(args.nvd_path, packages)
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help