From 00a51b18b765e5a6e8139ad67f6e897b63f86b27 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 31 Dec 2024 00:14:47 +0100 Subject: [PATCH] Fix: System python test failure after #132432 The text keyword is an alias of universal_newlines, and was introduced in newer Python versions. --- build_files/build_environment/install_linux_packages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_files/build_environment/install_linux_packages.py b/build_files/build_environment/install_linux_packages.py index 064bb2596cb..356287b8f30 100755 --- a/build_files/build_environment/install_linux_packages.py +++ b/build_files/build_environment/install_linux_packages.py @@ -21,7 +21,7 @@ MAYSUDO = subprocess.run("command -v sudo || command -v doas", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, - text=True).stdout.rstrip('\n') + universal_newlines=True).stdout.rstrip('\n') class LoggingColoredFormatter(logging.Formatter):