summaryrefslogtreecommitdiffstats
path: root/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:30 +0000
commit4bdfeab7845bdcd62a4928200dd13701414a464e (patch)
treed2a9ef03e0b1879e36180c62a5ee545b0aff32c8 /lib/bb/utils.py
parent9027b1273b5405c7269b013604ab417771b5eafe (diff)
downloadopenembedded-core-contrib-4bdfeab7845bdcd62a4928200dd13701414a464e.tar.gz
utils.py: don't use len() for truth value testing.
Signed-off-by: Oscar Utbult <oscar@oscr.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/utils.py')
-rw-r--r--lib/bb/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py
index 670e592fe0..c6f40711a9 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