/third_party/python/Lib/test/ |
H A D | test_urllibnet.py | 33 f = urllib.request.urlopen(support.TEST_HTTP_URL) 38 """Tests urllib.request.urlopen using the network. 59 def urlopen(self, *args, **kwargs): member in urlopenNetworkTests 62 r = urllib.request.urlopen(*args, **kwargs) 70 with self.urlopen(self.url) as open_url: 74 "urlopen lacks the %s attribute" % attr) 79 with self.urlopen(self.url) as open_url: 87 with self.urlopen(self.url) as open_url: 96 with self.urlopen(self.url) as open_url: 148 urllib.request.urlopen("htt [all...] |
H A D | test_urllib2_localnet.py | 312 self.assertTrue(urllib.request.urlopen(self.server_url)) 320 self.assertRaises(urllib.error.HTTPError, urllib.request.urlopen, self.server_url) 445 """Tests urllib.request.urlopen using the network. 467 def urlopen(self, url, data=None, **kwargs): member in TestUrlopen 469 f = urllib.request.urlopen(url, data, **kwargs) 517 data = self.urlopen("http://localhost:%s/" % handler.port) 532 data = self.urlopen("http://localhost:%s/" % handler.port) 540 self.urlopen("http://localhost:%s/weeble" % handler.port) 553 data = self.urlopen("http://localhost:%s/bizarre" % handler.port) 560 data = self.urlopen("htt [all...] |
H A D | test_urllib.py | 43 def urlopen(url, data=None, proxies=None): function 44 """urlopen(url [, data]) -> open file-like object""" 94 # buffer to store data for verification in urlopen tests. 144 """Test urlopen() opening a temporary file. 162 self.returned_obj = urlopen("file:%s" % self.quoted_pathname) 170 # Make sure object returned by urlopen() has the specified methods 174 "object returned by urlopen() lacks %s attribute" % 233 self.assertRaises(ValueError,urllib.request.urlopen,'./' + self.pathname) 344 """Test urlopen() opening a fake http connection.""" 349 fp = urlopen("htt [all...] |
H A D | test_urllib2net.py | 34 _urlopen_with_retry = _wrap_with_retry_thrice(urllib.request.urlopen, 92 # self.fail("urlopen() should have failed with 401") 107 # urllib2.urlopen, "http://evil:thing@example.com") 161 self.assertRaises(ValueError, urllib.request.urlopen,'./relative_path/to/file') 195 res = urllib.request.urlopen(req) 203 res = urllib.request.urlopen(req) 229 with urllib.request.urlopen(URL) as res: 232 self.fail("urlopen failed for site not sending \ 237 req = urllib.request.urlopen(URL) 246 urlopen [all...] |
/third_party/skia/experimental/tools/ |
H A D | get_examples.py | 15 from urllib2 import urlopen namespace 19 from urllib.request import urlopen namespace 46 content = urlopen(url).read() 105 for line in urlopen('https://fiddle.skia.org/named/'):
|
/third_party/skia/bin/ |
H A D | fetch-gn | 17 from urllib2 import urlopen namespace 19 from urllib.request import urlopen namespace 31 f.write(urlopen(url).read())
|
H A D | fetch-sk | 20 from urllib2 import urlopen namespace 22 from urllib.request import urlopen namespace 86 f.write(urlopen(url).read())
|
H A D | fetch-clang-format | 38 f.write(urllib2.urlopen(url).read())
|
/third_party/vk-gl-cts/external/ |
H A D | fetch_sources.py | 118 from urllib2 import urlopen namespace 120 from urllib.request import urlopen namespace 125 result = urlopen(url, context=ssl_context) 127 result = urlopen(url) 211 from urllib2 import urlopen namespace 213 from urllib.request import urlopen namespace 218 result = urlopen(url, context=ssl_context) 220 result = urlopen(url)
|
/third_party/skia/tools/skqp/ |
H A D | find_commit_with_best_gold_results.py | 57 def urlopen(url): function 59 return urllib2.urlopen(urllib2.Request(url, headers={'Cookie': cookie})) 69 testResults = json.load(urlopen(url))
|
H A D | cut_release.py | 22 def urlopen(url): function 24 return urllib2.urlopen(urllib2.Request(url, headers={'Cookie': cookie})) 53 f = urlopen('https://public-gold.skia.org/json/export?' + urllib.urlencode([
|
/third_party/vk-gl-cts/scripts/khr_util/ |
H A D | registry_cache.py | 91 from urllib2 import urlopen namespace 93 from urllib.request import urlopen namespace 96 req = urlopen(makeSourceUrl(repository, revision, filename))
|
/third_party/python/Tools/scripts/ |
H A D | verify_ensurepip_wheels.py | 15 from urllib.request import urlopen namespace 59 raw_text = urlopen(f"https://pypi.org/pypi/{package_name}/json").read()
|
H A D | parse_html5_entities.py | 14 from urllib.request import urlopen namespace 21 with urlopen(url) as f:
|
H A D | checkpip.py | 16 data = json.loads(urllib.request.urlopen(
|
/third_party/python/Lib/distutils/tests/ |
H A D | test_upload.py | 73 self.old_open = upload_mod.urlopen 74 upload_mod.urlopen = self._urlopen 80 upload_mod.urlopen = self.old_open 208 with mock.patch('distutils.command.upload.urlopen',
|
/third_party/skia/infra/bots/assets/valgrind/ |
H A D | create.py | 21 from urllib.request import urlopen namespace 41 f.write(urlopen(DOWNLOAD_URL).read())
|
/third_party/skia/third_party/externals/brotli/scripts/dictionary/ |
H A D | step-01-download-rfc.py | 8 response = urllib2.urlopen('https://tools.ietf.org/rfc/rfc7932.txt')
|
/third_party/skia/tools/ |
H A D | retrieve_from_googlesource.py | 29 with closing(urllib2.urlopen(base64_url)) as f:
|
H A D | compare_codereview.py | 51 parser.feed(urllib2.urlopen(url).read()) 172 parser.feed(urllib2.urlopen(url).read())
|
H A D | jsondiff.py | 56 return urllib2.urlopen(filepath).read()
|
/third_party/python/Lib/distutils/command/ |
H A D | upload.py | 13 from urllib.request import urlopen, Request namespace 195 result = urlopen(request)
|
/third_party/skia/tools/android/ |
H A D | upload_to_android.py | 50 response = urllib2.urlopen('%s/changes/%s/detail?o=ALL_REVISIONS' % ( 70 response = urllib2.urlopen(REPO_TOOL_URL, timeout=5)
|
/third_party/python/Tools/msi/ |
H A D | purge.py | 82 with urlopen(Request(u, method='PURGE', headers={'Fastly-Soft-Purge': 1})) as r:
|
/third_party/python/Tools/ssl/ |
H A D | multissltests.py | 32 from urllib.request import urlopen namespace 35 from urllib2 import urlopen, HTTPError namespace 256 req = urlopen(url)
|