diff options
author | Oscar Utbult <oscar@oscr.io> | 2014-10-26 23:43:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-10-28 14:58:30 +0000 |
commit | 4bdfeab7845bdcd62a4928200dd13701414a464e (patch) | |
tree | d2a9ef03e0b1879e36180c62a5ee545b0aff32c8 /lib/bb/utils.py | |
parent | 9027b1273b5405c7269b013604ab417771b5eafe (diff) | |
download | bitbake-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py index 670e592fe..c6f40711a 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 |