aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcomponents/style/binding_tools/regen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/style/binding_tools/regen.py b/components/style/binding_tools/regen.py
index 822f6766419..4f5a76fe161 100755
--- a/components/style/binding_tools/regen.py
+++ b/components/style/binding_tools/regen.py
@@ -617,10 +617,10 @@ Option<&'a {0}>;".format(ty))
flags = [debugger, "--args"] + flags
subprocess.check_call(flags)
else:
- output = subprocess.check_output(flags, stderr=subprocess.STDOUT)
- output = output.decode('utf8')
+ output = subprocess.check_output(flags, stderr=subprocess.STDOUT,
+ universal_newlines=True)
except subprocess.CalledProcessError as e:
- print("FAIL\n", e.output.decode('utf8'))
+ print("FAIL\n", e.output)
return 1
print("OK")