diff options
author | William Deegan <bill@baddogconsulting.com> | 2022-11-03 14:35:17 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2022-11-03 14:35:17 (GMT) |
commit | ef9879e9d8de55631e07a7e05510ca33aaf61185 (patch) | |
tree | eb3906b5f1981ac74f2f7c5cf30dac288dc03ff6 | |
parent | 2c791e4d7f4ab304fda9a03eabc3916056b0e36f (diff) | |
download | SCons-ef9879e9d8de55631e07a7e05510ca33aaf61185.zip SCons-ef9879e9d8de55631e07a7e05510ca33aaf61185.tar.gz SCons-ef9879e9d8de55631e07a7e05510ca33aaf61185.tar.bz2 |
Changed argument name for sanitize_shell_env from env -> execution_env per feedback from mwichmann
-rw-r--r-- | SCons/Util.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SCons/Util.py b/SCons/Util.py index c914af0..a7a6307 100644 --- a/SCons/Util.py +++ b/SCons/Util.py @@ -2139,16 +2139,16 @@ class DispatchingFormatter(Formatter): return formatter.format(record) -def sanitize_shell_env(env): +def sanitize_shell_env(execution_env): """ - Sanitize all values from env['ENV'] which will be propagated to the shell - :param env: The shell environment variables to be propagated to spawned shell + Sanitize all values in execution_env (typically this is env['ENV']) which will be propagated to the shell + :param execution_env: The shell environment variables to be propagated to spawned shell :return: sanitize dictionary of env variables (similar to what you'd get from os.environ) """ # Ensure that the ENV values are all strings: new_env = {} - for key, value in env.items(): + for key, value in execution_env.items(): if is_List(value): # If the value is a list, then we assume it is a path list, # because that's a pretty common list-like value to stick |