🐛 Fix env passed to sarge

Should not contain any bytes.
This commit is contained in:
Gina Häußge committed 2022-02-07 10:58:16 +01:00
1 parent f849315c18
commit d765555c38
1 file changed
+1 -1
@@ -101,7 +101,7 @@ def perform_update(target, check, target_version, log_cb=None, online=True, forc
logger.debug(f"Target: {target}, executing pip install {install_arg}")
pip_args = ["--disable-pip-version-check", "install", install_arg, "--no-cache-dir"]
pip_kwargs = {
"env": {"PYTHONWARNINGS": b"ignore:DEPRECATION::pip._internal.cli.base_command"}
"env": {"PYTHONWARNINGS": "ignore:DEPRECATION::pip._internal.cli.base_command"}
}
if pip_working_directory is not None:
pip_kwargs.update(cwd=pip_working_directory)