ensure keys are converted to string as well

This commit is contained in:
Milan Kolar 2021-02-23 12:39:15 +01:00
parent ba2d1c7edd
commit 55df47c8f3
2 changed files with 4 additions and 16 deletions

View file

@ -94,7 +94,7 @@ def run_subprocess(*args, **kwargs):
# not passed.
env = kwargs.get("env") or os.environ
# Make sure environment contains only strings
filtered_env = {k: str(v) for k, v in env.items()}
filtered_env = {str(k): str(v) for k, v in env.items()}
# Use lib's logger if was not passed with kwargs.
logger = kwargs.pop("logger", log)