mirror of
https://github.com/servo/servo.git
synced 2025-07-18 12:53:40 +01:00
Port some code to Python3
This commit is contained in:
parent
f73370088b
commit
a627dde0d0
24 changed files with 1439 additions and 2341 deletions
|
@ -749,7 +749,7 @@ install them, let us know by filing a bug!")
|
|||
# Shorten hash
|
||||
# NOTE: Partially verifies the hash, but it will still pass if it's, e.g., a tree
|
||||
git_sha = subprocess.check_output([
|
||||
'git', 'rev-parse', '--short', git_sha
|
||||
'git', 'rev-parse', '--short', git_sha.decode('ascii')
|
||||
])
|
||||
else:
|
||||
# This is a regular commit
|
||||
|
@ -999,7 +999,7 @@ install them, let us know by filing a bug!")
|
|||
toolchain = self.rust_toolchain()
|
||||
|
||||
status = subprocess.call(
|
||||
["rustup", "run", toolchain.encode("utf-8"), "rustc", "--version"],
|
||||
["rustup", "run", toolchain, "rustc", "--version"],
|
||||
stdout=open(os.devnull, "wb"),
|
||||
stderr=subprocess.STDOUT,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue