[oe-commits] [bitbake] 01/04: lib/bb/utils: no need to unsetenv when manipulating os.environ
git at git.openembedded.org
git at git.openembedded.org
Wed Jul 20 09:24:24 UTC 2016
rpurdie pushed a commit to branch master
in repository bitbake.
commit a4463e2ff3c7d234320176d671719243292f1af0
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Mon Jul 18 23:10:41 2016 +0100
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 <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/utils.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/bb/utils.py b/lib/bb/utils.py
index 3f1c645..aad26a0 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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list