/third_party/python/Lib/test/ |
D | test_urllib2_localnet.py | 309 self.assertTrue(urllib.request.urlopen(self.server_url)) 317 self.assertRaises(urllib.error.HTTPError, urllib.request.urlopen, self.server_url) 464 def urlopen(self, url, data=None, **kwargs): member in TestUrlopen 466 f = urllib.request.urlopen(url, data, **kwargs) 514 data = self.urlopen("http://localhost:%s/" % handler.port) 529 data = self.urlopen("http://localhost:%s/" % handler.port) 537 self.urlopen("http://localhost:%s/weeble" % handler.port) 550 data = self.urlopen("http://localhost:%s/bizarre" % handler.port) 557 data = self.urlopen("http://localhost:%s/bizarre" % handler.port, 565 data = self.urlopen("https://localhost:%s/bizarre" % handler.port, context=context) [all …]
|
D | test_urllibnet.py | 33 f = urllib.request.urlopen(support.TEST_HTTP_URL) 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: 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("http://{}/".format(bogus_domain))
|
D | test_urllib2net.py | 40 _urlopen_with_retry = _wrap_with_retry_thrice(urllib.request.urlopen, 166 self.assertRaises(ValueError, urllib.request.urlopen,'./relative_path/to/file') 200 res = urllib.request.urlopen(req) 208 res = urllib.request.urlopen(req) 234 with urllib.request.urlopen(URL) as res: 242 req = urllib.request.urlopen(URL) 251 urlopen = urllib.request.build_opener(*handlers).open 253 urlopen = _wrap_with_retry_thrice(urlopen, urllib.error.URLError) 264 f = urlopen(url, req, support.INTERNET_TIMEOUT)
|
D | test_urllib.py | 38 def urlopen(url, data=None, proxies=None): function 157 self.returned_obj = urlopen("file:%s" % self.quoted_pathname) 228 self.assertRaises(ValueError,urllib.request.urlopen,'./' + self.pathname) 349 fp = urlopen("http://python.org/") 362 fp = urllib.request.urlopen(url) 370 resp = urlopen("http://www.python.org") 392 urllib.request.urlopen(f"http:{schemeless_url}") 395 urllib.request.urlopen(f"https:{schemeless_url}") 397 resp = urlopen(f"http:{schemeless_url}") 417 urllib.request.urlopen(f"http:{schemeless_url}") [all …]
|
/third_party/skia/experimental/tools/ |
D | get_examples.py | 15 from urllib2 import urlopen 19 from urllib.request import urlopen 46 content = urlopen(url).read() 105 for line in urlopen('https://fiddle.skia.org/named/'):
|
/third_party/skia/bin/ |
D | fetch-gn | 17 from urllib2 import urlopen 19 from urllib.request import urlopen 31 f.write(urlopen(url).read())
|
D | fetch-sk | 20 from urllib2 import urlopen 22 from urllib.request import urlopen 86 f.write(urlopen(url).read())
|
/third_party/vk-gl-cts/external/ |
D | fetch_sources.py | 113 from urllib2 import urlopen 115 from urllib.request import urlopen 120 result = urlopen(url, context=ssl_context) 122 result = urlopen(url) 202 from urllib2 import urlopen 204 from urllib.request import urlopen 209 result = urlopen(url, context=ssl_context) 211 result = urlopen(url)
|
/third_party/python/Doc/howto/ |
D | urllib2.rst | 31 the *urlopen* function. This is capable of fetching URLs using a variety of 41 For straightforward situations *urlopen* is very easy to use. But as soon as you 56 with urllib.request.urlopen('http://python.org/') as response: 67 with urllib.request.urlopen('http://python.org/') as response: 82 object that specifies the URL you want to fetch. Calling ``urlopen`` with this 90 with urllib.request.urlopen(req) as response: 128 with urllib.request.urlopen(req) as response: 159 >>> data = urllib.request.urlopen(full_url) 194 with urllib.request.urlopen(req) as response: 204 *urlopen* raises :exc:`URLError` when it cannot handle a response (though as [all …]
|
/third_party/mesa3d/.gitlab-ci/container/ |
D | build-skqp_fetch_gn.patch | 20 + from urllib2 import urlopen 22 + from urllib.request import urlopen 38 + f.write(urlopen(url).read()) 52 - f.write(urllib2.urlopen('https://chromium-gn.storage-download.googleapis.com/' + sha1).read())
|
/third_party/skia/tools/skqp/ |
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))
|
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/ |
D | registry_cache.py | 90 from urllib2 import urlopen 92 from urllib.request import urlopen 95 req = urlopen(makeSourceUrl(repository, revision, filename))
|
/third_party/python/Tools/scripts/ |
D | parse_html5_entities.py | 14 from urllib.request import urlopen 21 with urlopen(url) as f:
|
D | checkpip.py | 16 data = json.loads(urllib.request.urlopen(
|
/third_party/python/Lib/distutils/tests/ |
D | test_upload.py | 73 self.old_open = upload_mod.urlopen 74 upload_mod.urlopen = self._urlopen 80 upload_mod.urlopen = self.old_open
|
/third_party/skia/infra/bots/assets/valgrind/ |
D | create.py | 21 from urllib.request import urlopen 41 f.write(urlopen(DOWNLOAD_URL).read())
|
/third_party/python/Doc/library/ |
D | urllib.request.rst | 28 .. function:: urlopen(url, data=None[, timeout], *, cafile=None, capath=None, cadefault=False, cont… 84 The legacy ``urllib.urlopen`` function from Python 2.6 and earlier has been 85 discontinued; :func:`urllib.request.urlopen` corresponds to the old 86 ``urllib2.urlopen``. Proxy handling, which was done by passing a dictionary 87 parameter to ``urllib.urlopen``, can be obtained by using 90 .. audit-event:: urllib.Request fullurl,data,headers,method urllib.request.urlopen 128 Installing an opener is only necessary if you want urlopen to use that 130 :func:`~urllib.request.urlopen`. The code does not check for a real 653 the same as those of :func:`urlopen` (which simply calls the :meth:`open` 669 Return values and exceptions raised are the same as those of :func:`urlopen`. [all …]
|
/third_party/skia/tools/android/ |
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/skia/third_party/externals/brotli/scripts/dictionary/ |
D | step-01-download-rfc.py | 8 response = urllib2.urlopen('https://tools.ietf.org/rfc/rfc7932.txt')
|
/third_party/gstreamer/gstplugins_bad/tests/check/media/ |
D | download-media | 10 with urllib.request.urlopen(sys.argv[1]) as response, open(sys.argv[2], 'wb') as out_file:
|
/third_party/python/Lib/distutils/command/ |
D | upload.py | 13 from urllib.request import urlopen, Request 195 result = urlopen(request)
|
/third_party/cef/tools/cefbuilds/ |
D | cef_json_builder.py | 14 from urllib2 import urlopen 16 from urllib.request import urlopen 178 handle = urlopen(query_url)
|
/third_party/skia/tools/ |
D | retrieve_from_googlesource.py | 29 with closing(urllib2.urlopen(base64_url)) as f:
|
/third_party/python/Tools/msi/ |
D | purge.py | 76 with urlopen(Request(u, method='PURGE', headers={'Fastly-Soft-Purge': 1})) as r:
|