diff options
author | Ross Burton <ross.burton@intel.com> | 2016-07-18 23:10:41 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-20 10:23:20 +0100 |
commit | a4463e2ff3c7d234320176d671719243292f1af0 (patch) | |
tree | 0aa05dcd2d41e1c246df44b21df74e7e99ae4145 /lib/bb/utils.py | |
parent | 4027649f422ee64b1c4e1ad8d48ac295050afbff (diff) | |
download | bitbake-a4463e2ff3c7d234320176d671719243292f1af0.tar.gz |
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.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/utils.py')
-rw-r--r-- | lib/bb/utils.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py index 3f1c645de..aad26a0f1 100644 --- a/lib/bb/utils.py +++ b/lib/bb/utils.py @@ -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 |