aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/post_build_commands.py
diff options
context:
space:
mode:
authorVincent Ricard <magic@magicninja.org>2020-12-28 22:31:49 +0100
committerJosh Matthews <josh@joshmatthews.net>2021-02-18 09:35:46 -0500
commita627dde0d01e35a1cbdb62ca19ee0349757c34b0 (patch)
tree094b86f657d87bfc374d436da809aca26281069d /python/servo/post_build_commands.py
parentf73370088b77a834d9b9f6835ae90a4a66e6d7ee (diff)
downloadservo-a627dde0d01e35a1cbdb62ca19ee0349757c34b0.tar.gz
servo-a627dde0d01e35a1cbdb62ca19ee0349757c34b0.zip
Port some code to Python3
Diffstat (limited to 'python/servo/post_build_commands.py')
-rw-r--r--python/servo/post_build_commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py
index 2e69c6ca917..daf2a9815ac 100644
--- a/python/servo/post_build_commands.py
+++ b/python/servo/post_build_commands.py
@@ -243,7 +243,8 @@ class PostBuildCommands(CommandBase):
media_stack=None, **kwargs):
self.ensure_bootstrapped(rustup_components=["rust-docs"])
rustc_path = check_output(
- ["rustup" + BIN_SUFFIX, "which", "--toolchain", self.rust_toolchain(), "rustc"])
+ ["rustup" + BIN_SUFFIX, "which", "--toolchain", self.rust_toolchain(), "rustc"]
+ ).decode('utf-8')
assert path.basename(path.dirname(rustc_path)) == "bin"
toolchain_path = path.dirname(path.dirname(rustc_path))
rust_docs = path.join(toolchain_path, "share", "doc", "rust", "html")