mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Port ./mach rustup
to Python 3
This commit is contained in:
parent
60b642968b
commit
4353d534d4
1 changed files with 3 additions and 3 deletions
|
@ -209,10 +209,10 @@ class MachCommands(CommandBase):
|
||||||
def rustup(self):
|
def rustup(self):
|
||||||
url = get_static_rust_lang_org_dist() + "/channel-rust-nightly-date.txt"
|
url = get_static_rust_lang_org_dist() + "/channel-rust-nightly-date.txt"
|
||||||
nightly_date = urllib.request.urlopen(url, **get_urlopen_kwargs()).read()
|
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")
|
filename = path.join(self.context.topdir, "rust-toolchain")
|
||||||
with open(filename, "w") as f:
|
with open(filename, "wb") as f:
|
||||||
f.write(toolchain + "\n")
|
f.write(toolchain + b"\n")
|
||||||
self.ensure_bootstrapped()
|
self.ensure_bootstrapped()
|
||||||
|
|
||||||
@Command('fetch',
|
@Command('fetch',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue