mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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):
|
||||
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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue