aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/devenv_commands.py
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-07-27 17:26:22 +0200
committerGitHub <noreply@github.com>2023-07-27 15:26:22 +0000
commit17a5b9200d09e50850155c71919b99bf8e322798 (patch)
treea0c7bc2a8ec08087d063d7a8a8a6adb1a55d2e5a /python/servo/devenv_commands.py
parentb8c04b4bad1636f78cddf8ec1944386520600da0 (diff)
downloadservo-17a5b9200d09e50850155c71919b99bf8e322798.tar.gz
servo-17a5b9200d09e50850155c71919b99bf8e322798.zip
Remove old code for out-of-date CA stores (#30031)
This code was written to handle both Python 2 (which we no longer support) and old Windows CI machines that did not have up-to-date CA stores. I think we can remove this now.
Diffstat (limited to 'python/servo/devenv_commands.py')
-rw-r--r--python/servo/devenv_commands.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py
index 065afed2a45..b09086a8ed4 100644
--- a/python/servo/devenv_commands.py
+++ b/python/servo/devenv_commands.py
@@ -23,7 +23,6 @@ from mach.decorators import (
)
from servo.command_base import CommandBase, cd, call
-from servo.util import get_static_rust_lang_org_dist, get_urlopen_kwargs
@CommandProvider
@@ -172,8 +171,8 @@ class MachCommands(CommandBase):
description='Update the Rust version to latest Nightly',
category='devenv')
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()
+ nightly_date = urllib.request.urlopen(
+ "https://static.rust-lang.org/dist/channel-rust-nightly-date.txt").read()
toolchain = b"nightly-" + nightly_date
filename = path.join(self.context.topdir, "rust-toolchain")
with open(filename, "wb") as f: