mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
Use str for bindgen output directly.
This commit is contained in:
parent
9cbac40f61
commit
b7fffb3829
1 changed files with 3 additions and 3 deletions
|
@ -617,10 +617,10 @@ Option<&'a {0}>;".format(ty))
|
||||||
flags = [debugger, "--args"] + flags
|
flags = [debugger, "--args"] + flags
|
||||||
subprocess.check_call(flags)
|
subprocess.check_call(flags)
|
||||||
else:
|
else:
|
||||||
output = subprocess.check_output(flags, stderr=subprocess.STDOUT)
|
output = subprocess.check_output(flags, stderr=subprocess.STDOUT,
|
||||||
output = output.decode('utf8')
|
universal_newlines=True)
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
print("FAIL\n", e.output.decode('utf8'))
|
print("FAIL\n", e.output)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
print("OK")
|
print("OK")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue