aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/devenv_commands.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2021-02-25 09:09:18 +0100
committerSimon Sapin <simon.sapin@exyr.org>2021-02-25 09:09:18 +0100
commit4353d534d4b0d64c80de7afc5b370f2a8a6d3d00 (patch)
tree686936ef66237a95f623f0cb3fa44dd12e30b7a6 /python/servo/devenv_commands.py
parent60b642968b1821fdb3a793f41b2c935d0e0ca89c (diff)
downloadservo-4353d534d4b0d64c80de7afc5b370f2a8a6d3d00.tar.gz
servo-4353d534d4b0d64c80de7afc5b370f2a8a6d3d00.zip
Port `./mach rustup` to Python 3
Diffstat (limited to 'python/servo/devenv_commands.py')
-rw-r--r--python/servo/devenv_commands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py
index abcab4b616d..0ca3bda436d 100644
--- a/python/servo/devenv_commands.py
+++ b/python/servo/devenv_commands.py
@@ -209,10 +209,10 @@ class MachCommands(CommandBase):
def rustup(self):
url = get_static_rust_lang_org_dist() + "/channel-rust-nightly-date.txt"
nightly_date = urllib.request.urlopen(url, **get_urlopen_kwargs()).read()
- toolchain = "nightly-" + nightly_date
+ toolchain = b"nightly-" + nightly_date
filename = path.join(self.context.topdir, "rust-toolchain")
- with open(filename, "w") as f:
- f.write(toolchain + "\n")
+ with open(filename, "wb") as f:
+ f.write(toolchain + b"\n")
self.ensure_bootstrapped()
@Command('fetch',