From b7fffb382928b05ca2a1e03e67dd88e3343c02e4 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Sat, 22 Oct 2016 12:05:44 +1100 Subject: [PATCH] Use str for bindgen output directly. --- components/style/binding_tools/regen.py | 6 +++--- 1 file 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")