aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index 7430247a2e3..fb1c79b8b3c 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -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,
)