| Index: tools/testrunner/local/utils.py
|
| diff --git a/tools/testrunner/local/utils.py b/tools/testrunner/local/utils.py
|
| index a5252b06a8ad08d2741e6d9a326e14777af51216..707fa24fbf1267ccf6b8ad32fd09cd621f266a11 100644
|
| --- a/tools/testrunner/local/utils.py
|
| +++ b/tools/testrunner/local/utils.py
|
| @@ -32,6 +32,7 @@ from os.path import isdir
|
| from os.path import join
|
| import platform
|
| import re
|
| +import urllib2
|
|
|
|
|
| def GetSuitePaths(test_root):
|
| @@ -113,3 +114,10 @@ def GuessWordsize():
|
|
|
| def IsWindows():
|
| return GuessOS() == 'windows'
|
| +
|
| +
|
| +def URLRetrieve(source, destination):
|
| + """urllib is broken for SSL connections via a proxy therefore we
|
| + can't use urllib.urlretrieve()."""
|
| + with open(destination, 'w') as f:
|
| + f.write(urllib2.urlopen(source).read())
|
|
|