🐛 Value AND key might need str-conversion

Closes #3825
This commit is contained in:
Gina Häußge committed 2020-11-18 13:09:51 +01:00
1 parent 84fb97f82a
commit 4768a7eb5a
1 file changed
+3 -1
+3 -1
View File
@@ -176,7 +176,9 @@ class CommandlineCaller(object):
# if we are running under windows, make sure there are no unicode strings in the env
if get_os() == "windows" and "env" in kwargs:
kwargs["env"] = dict((k, to_native_str(v)) for k, v in kwargs["env"].items())
kwargs["env"] = dict(
(to_native_str(k), to_native_str(v)) for k, v in kwargs["env"].items()
)
delimiter = kwargs.get("delimiter", b"\n")
try: