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):