From: Ross Burton Date: Mon, 18 Jul 2016 22:10:41 +0000 (+0100) Subject: bitbake: lib/bb/utils: no need to unsetenv when manipulating os.environ X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dead7b22b4af5292c1a350ac09654b835f5aa4e5;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 3f1c645de3b..aad26a0f1e6 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/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