mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04: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
|
||||
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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue