From 29a8c71b46dae5f54af271cbbea3bd1fdc6ae64b Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Mon, 28 Sep 2020 12:20:43 -0400 Subject: [PATCH] Fix issues with subprocess in Python <= 3.6.9 --- utils/venv-manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/venv-manager.py b/utils/venv-manager.py index d19da5c..6de0bd8 100644 --- a/utils/venv-manager.py +++ b/utils/venv-manager.py @@ -102,7 +102,7 @@ def run_logged_subprocess(command: Union[str, list], timeout: int = 10, shell: b """ logger.debug(f"Entering subprocess for '{command}'") with subprocess.Popen(command,\ - stderr=subprocess.STDOUT, stdout=subprocess.PIPE, shell=shell, text=True)\ + stderr=subprocess.STDOUT, stdout=subprocess.PIPE, shell=shell, universal_newlines=True)\ as logged_shell_process: subprocess_log_prefix = f"(PID: {logged_shell_process.pid})"