[Bf-blender-cvs] [7ab936c5b9e] master: Fix T69640: make update not working with Python older than 3.7

Brecht Van Lommel noreply at git.blender.org
Sun Sep 8 18:46:48 CEST 2019


Commit: 7ab936c5b9e145b8de21e91a28a993c09d9274b1
Author: Brecht Van Lommel
Date:   Sun Sep 8 18:44:47 2019 +0200
Branches: master
https://developer.blender.org/rB7ab936c5b9e145b8de21e91a28a993c09d9274b1

Fix T69640: make update not working with Python older than 3.7

===================================================================

M	build_files/utils/make_utils.py

===================================================================

diff --git a/build_files/utils/make_utils.py b/build_files/utils/make_utils.py
index 9a1f740a393..0c63a18b0ba 100755
--- a/build_files/utils/make_utils.py
+++ b/build_files/utils/make_utils.py
@@ -24,7 +24,7 @@ def check_output(cmd, exit_on_error=True):
     sys.stderr.flush()
 
     try:
-        output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, text=True)
+        output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, universal_newlines=True)
     except subprocess.CalledProcessError as e:
         if exit_on_error:
             sys.stderr.write(" ".join(cmd))



More information about the Bf-blender-cvs mailing list