aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/binding_tools/regen.py
diff options
context:
space:
mode:
authorXidorn Quan <me@upsuper.org>2016-10-22 12:05:44 +1100
committerXidorn Quan <me@upsuper.org>2016-10-22 13:59:20 +1100
commitb7fffb382928b05ca2a1e03e67dd88e3343c02e4 (patch)
treeffd7f2ae588f20b356988c1b7b8a74edf0058d8e /components/style/binding_tools/regen.py
parent9cbac40f618a5d87bd883e81a70e233e0ea3a87f (diff)
downloadservo-b7fffb382928b05ca2a1e03e67dd88e3343c02e4.tar.gz
servo-b7fffb382928b05ca2a1e03e67dd88e3343c02e4.zip
Use str for bindgen output directly.
Diffstat (limited to 'components/style/binding_tools/regen.py')
-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")