Commit 99ca333b authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

Remove unused method in local/utils.py

Bug: v8:9871
Change-Id: Ie85d4070e30a738a01eb6fc35ec3ab6d0c5cfc1a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2274333Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68698}
parent 577df713
...@@ -34,7 +34,6 @@ from os.path import join ...@@ -34,7 +34,6 @@ from os.path import join
import os import os
import platform import platform
import re import re
import subprocess
import urllib import urllib
...@@ -138,23 +137,6 @@ def IsWindows(): ...@@ -138,23 +137,6 @@ def IsWindows():
return GuessOS() == 'windows' return GuessOS() == 'windows'
def URLRetrieve(source, destination):
"""urllib is broken for SSL connections via a proxy therefore we
can't use urllib.urlretrieve()."""
if IsWindows():
try:
# In python 2.7.6 on windows, urlopen has a problem with redirects.
# Try using curl instead. Note, this is fixed in 2.7.8.
subprocess.check_call(["curl", source, '-k', '-L', '-o', destination])
return
except:
# If there's no curl, fall back to urlopen.
print("Curl is currently not installed. Falling back to python.")
pass
with open(destination, 'w') as f:
f.write(urllib2.urlopen(source).read())
class FrozenDict(dict): class FrozenDict(dict):
def __setitem__(self, *args, **kwargs): def __setitem__(self, *args, **kwargs):
raise Exception('Tried to mutate a frozen dict') raise Exception('Tried to mutate a frozen dict')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment