summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-07-18 23:10:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-20 10:23:45 +0100
commitdead7b22b4af5292c1a350ac09654b835f5aa4e5 (patch)
tree7cc878322b6d3a45a9ee9820388f85389e3fbc7c /bitbake
parentaae4c2a629d5314a1ccf17e87827adb080cbbe53 (diff)
downloadpoky-dead7b22b4af5292c1a350ac09654b835f5aa4e5.tar.gz
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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/utils.py1
1 files changed, 0 insertions, 1 deletions
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):
599 continue 599 continue
600 600
601 removed_vars[key] = os.environ[key] 601 removed_vars[key] = os.environ[key]
602 os.unsetenv(key)
603 del os.environ[key] 602 del os.environ[key]
604 603
605 # If we spawn a python process, we need to have a UTF-8 locale, else python's file 604 # If we spawn a python process, we need to have a UTF-8 locale, else python's file