From a4463e2ff3c7d234320176d671719243292f1af0 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 18 Jul 2016 23:10:41 +0100 Subject: 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 Signed-off-by: Richard Purdie --- lib/bb/utils.py | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/bb/utils.py') 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 -- cgit 1.2.3-korg