bitbake: lib/bb/utils: no need to unsetenv when manipulating os.environ

Doing both os.unsetenv(foo) and then del os.environ[foo] is pointless as del
will call unsetenv automatically.

(Bitbake rev: a4463e2ff3c7d234320176d671719243292f1af0)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton 2016-07-18 23:10:41 +01:00 committed by Richard Purdie
parent aae4c2a629
commit dead7b22b4
1 changed files with 0 additions and 1 deletions

View File

@ -599,7 +599,6 @@ def filter_environment(good_vars):
continue
removed_vars[key] = os.environ[key]
os.unsetenv(key)
del os.environ[key]
# If we spawn a python process, we need to have a UTF-8 locale, else python's file