diff mbox series

[08/11] bitbake-setup: Fix linting error related to membership

Message ID 20260326185742.542268-9-rob.woolley@windriver.com
State New
Headers show
Series [01/11] bitbake-setup: Remove extraneous variable from str.format() | expand

Commit Message

Rob Woolley March 26, 2026, 6:57 p.m. UTC
The pycodestyle E713 recommends that negative tests for membership
use `foo not in bar` instead of `not foo in bar`.

Signed-off-by: Rob Woolley <rob.woolley@windriver.com>
---
 bin/bitbake-setup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/bin/bitbake-setup b/bin/bitbake-setup
index 7cc3f9253..e2b2f1836 100755
--- a/bin/bitbake-setup
+++ b/bin/bitbake-setup
@@ -154,7 +154,7 @@  def add_unique_timestamp_to_path(path):
 def _get_remotes(r_remote):
     remotes = []
 
-    if not 'remotes' in r_remote and not 'uri' in r_remote:
+    if 'remotes' not in r_remote and 'uri' not in r_remote:
         raise Exception("Expected key(s): 'remotes', 'uri'")
 
     if 'remotes' in r_remote: