[bitbake-devel] [PATCH] utils.py: don't use len() for truth value testing.

Oscar Utbult oscar at oscr.io
Sun Oct 26 22:43:32 UTC 2014


Signed-off-by: Oscar Utbult <oscar at oscr.io>
---
 lib/bb/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/utils.py b/lib/bb/utils.py
index 670e592..c6f4071 100644
--- a/lib/bb/utils.py
+++ b/lib/bb/utils.py
@@ -522,7 +522,7 @@ def filter_environment(good_vars):
         os.unsetenv(key)
         del os.environ[key]
 
-    if len(removed_vars):
+    if removed_vars:
         logger.debug(1, "Removed the following variables from the environment: %s", ", ".join(removed_vars.keys()))
 
     return removed_vars
-- 
1.9.1




More information about the bitbake-devel mailing list