summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/utils.py
diff options
context:
space:
mode:
authorOscar Utbult <oscar@oscr.io>2014-10-26 23:43:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-28 14:58:34 +0000
commit2794f916ff4f13f71ecd829c2f0a838634d35352 (patch)
tree01d0c720c811727f72b5c7f88a6916fb7afbb925 /bitbake/lib/bb/utils.py
parentf5b9b389c0322da4222fdf1d7e1267a2804a73f7 (diff)
downloadpoky-2794f916ff4f13f71ecd829c2f0a838634d35352.tar.gz
bitbake: utils.py: don't use len() for truth value testing.
(Bitbake rev: 4bdfeab7845bdcd62a4928200dd13701414a464e) Signed-off-by: Oscar Utbult <oscar@oscr.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r--bitbake/lib/bb/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 670e592fe0..c6f40711a9 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -522,7 +522,7 @@ def filter_environment(good_vars):
522 os.unsetenv(key) 522 os.unsetenv(key)
523 del os.environ[key] 523 del os.environ[key]
524 524
525 if len(removed_vars): 525 if removed_vars:
526 logger.debug(1, "Removed the following variables from the environment: %s", ", ".join(removed_vars.keys())) 526 logger.debug(1, "Removed the following variables from the environment: %s", ", ".join(removed_vars.keys()))
527 527
528 return removed_vars 528 return removed_vars