[gnome-continuous-yocto/gnomeostree-3.28-rocko: 1344/8267] bitbake: lib/bb/utils: no need to unsetenv when manipulating os.environ



commit dead7b22b4af5292c1a350ac09654b835f5aa4e5
Author: Ross Burton <ross burton intel com>
Date:   Mon Jul 18 23:10:41 2016 +0100

    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>

 bitbake/lib/bb/utils.py |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 3f1c645..aad26a0 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]