diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-10-19 19:56:18 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-10-19 19:56:18 +0200 |
commit | 404c722920043caf548bf10c0242aac5d22a96b3 (patch) | |
tree | 4d499b5c5ef99d693cae65b8e0b061e89f79c237 /python/servo/command_base.py | |
parent | aa62942fbd836279da8ea41d2e5d4ca9dd61fad3 (diff) | |
download | servo-404c722920043caf548bf10c0242aac5d22a96b3.tar.gz servo-404c722920043caf548bf10c0242aac5d22a96b3.zip |
Only pass cafile argument to urlopen in Python versions that support it.
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r-- | python/servo/command_base.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 1eaf09411e3..77bb88886fa 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -25,16 +25,6 @@ import toml from servo.packages import WINDOWS_MSVC as msvc_deps from servo.util import host_triple, host_platform -try: - from ssl import HAS_SNI -except ImportError: - HAS_SNI = False - -if HAS_SNI: - STATIC_RUST_LANG_ORG_DIST = "https://static.rust-lang.org/dist" -else: - STATIC_RUST_LANG_ORG_DIST = "https://static-rust-lang-org.s3.amazonaws.com/dist" - BIN_SUFFIX = ".exe" if sys.platform == "win32" else "" |