From dead7b22b4af5292c1a350ac09654b835f5aa4e5 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 18 Jul 2016 23:10:41 +0100 Subject: 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 --- bitbake/lib/bb/utils.py | 1 - 1 file changed, 1 deletion(-) (limited to 'bitbake/lib/bb/utils.py') diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 3f1c645de3..aad26a0f1e 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 -- cgit v1.2.3-54-g00ecf