aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/devenv_commands.py
diff options
context:
space:
mode:
authorShanavas M <shanavas.m2@gmail.com>2019-01-03 12:15:31 +0530
committerShanavas M <shanavas.m2@gmail.com>2019-01-03 14:41:54 +0530
commit1bc8f23232ea0960d32f7ffa34f86c80b8d4e403 (patch)
treeb33cef0ec1feccf2c52b2d0d5ea0b55f74b086fa /python/servo/devenv_commands.py
parente68585a26f21c70e70b85f9c79fc0edd0a12fb23 (diff)
downloadservo-1bc8f23232ea0960d32f7ffa34f86c80b8d4e403.tar.gz
servo-1bc8f23232ea0960d32f7ffa34f86c80b8d4e403.zip
Fix certifi import error while running ./match bootstrap
Fixes #22590
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 46862754bd1..b298bf48fd1 100644
--- a/python/servo/devenv_commands.py
+++ b/python/servo/devenv_commands.py
@@ -26,7 +26,7 @@ from mach.decorators import (
from servo.command_base import CommandBase, cd, call, BIN_SUFFIX
from servo.build_commands import notify_build_done
-from servo.util import STATIC_RUST_LANG_ORG_DIST, URLOPEN_KWARGS
+from servo.util import get_static_rust_lang_org_dist, get_urlopen_kwargs
@CommandProvider
@@ -216,8 +216,8 @@ class MachCommands(CommandBase):
description='Update the Rust version to latest Nightly',
category='devenv')
def rustup(self):
- url = STATIC_RUST_LANG_ORG_DIST + "/channel-rust-nightly-date.txt"
- nightly_date = urllib2.urlopen(url, **URLOPEN_KWARGS).read()
+ url = get_static_rust_lang_org_dist() + "/channel-rust-nightly-date.txt"
+ nightly_date = urllib2.urlopen(url, **get_urlopen_kwargs()).read()
toolchain = "nightly-" + nightly_date
filename = path.join(self.context.topdir, "rust-toolchain")
with open(filename, "w") as f: