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

This commit is contained in:
Brecht Van Lommel
2019-09-08 18:44:47 +02:00
parent a9dbc2ef4a
commit 7ab936c5b9

View File

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