mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1744884 - Remove requests
module import, as it's already in-scope by the time of bootstrap (since to Bug 1647792
) r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D135267
This commit is contained in:
parent
80a93642e9
commit
d4c362f06c
@ -7,7 +7,6 @@ from __future__ import absolute_import, print_function, unicode_literals
|
||||
import platform as platform_mod
|
||||
import sys
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
# Base url for pulling the rustup installer.
|
||||
# Use the no-CNAME host for compatibilty with Python 2.7
|
||||
@ -152,14 +151,6 @@ def make_checksums(version, validate=False):
|
||||
if __name__ == "__main__":
|
||||
"""Allow invoking the module as a utility to update checksums."""
|
||||
|
||||
# Hook the requests module from the greater source tree. We can't import
|
||||
# this at the module level since we might be imported into the bootstrap
|
||||
# script in standalone mode.
|
||||
#
|
||||
# This module is necessary for correct https certificate verification.
|
||||
mod_path = Path(__file__).resolve().parent
|
||||
sys.path.insert(0, str(mod_path / ".." / ".." / "requests"))
|
||||
|
||||
update = False
|
||||
if len(sys.argv) > 1:
|
||||
if sys.argv[1] == "--update":
|
||||
|
Loading…
Reference in New Issue
Block a user