diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2020-01-02 17:02:12 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2020-01-02 17:02:12 +0100 |
commit | 1d3fdc471e19a44d69526b9d94e5a13550b2d1a4 (patch) | |
tree | bda233710861b01755f254513ab97470cccaf99e /python/servo/command_base.py | |
parent | 895cf695c440d7369255e92c9a0771b3bb0a0988 (diff) | |
download | servo-1d3fdc471e19a44d69526b9d94e5a13550b2d1a4.tar.gz servo-1d3fdc471e19a44d69526b9d94e5a13550b2d1a4.zip |
Fix Python 3 support in mach’s `ensure_bootstrapped`
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r-- | python/servo/command_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py index c32219c184d..ee6ee0e450d 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -1008,14 +1008,14 @@ install them, let us know by filing a bug!") self.ensure_rustup_version() toolchain = self.rust_toolchain() - if toolchain not in check_output(["rustup", "toolchain", "list"]): + if toolchain.encode("utf-8") not in check_output(["rustup", "toolchain", "list"]): check_call(["rustup", "toolchain", "install", "--profile", "minimal", toolchain]) installed = check_output( ["rustup", "component", "list", "--installed", "--toolchain", toolchain] ) for component in set(rustup_components or []) | {"rustc-dev"}: - if component not in installed: + if component.encode("utf-8") not in installed: check_call(["rustup", "component", "add", "--toolchain", toolchain, component]) if target and "uwp" not in target and target not in check_output( |