Home
last modified time | relevance | path

Searched refs:urlopen (Results 1 – 25 of 65) sorted by relevance

123

/third_party/python/Lib/test/
Dtest_urllib2_localnet.py309 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 …]
Dtest_urllibnet.py33 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))
Dtest_urllib2net.py40 _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)
Dtest_urllib.py38 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/
Dget_examples.py15 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/
Dfetch-gn17 from urllib2 import urlopen
19 from urllib.request import urlopen
31 f.write(urlopen(url).read())
Dfetch-sk20 from urllib2 import urlopen
22 from urllib.request import urlopen
86 f.write(urlopen(url).read())
/third_party/vk-gl-cts/external/
Dfetch_sources.py113 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/
Durllib2.rst31 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/
Dbuild-skqp_fetch_gn.patch20 + 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/
Dfind_commit_with_best_gold_results.py57 def urlopen(url): function
59 return urllib2.urlopen(urllib2.Request(url, headers={'Cookie': cookie}))
69 testResults = json.load(urlopen(url))
Dcut_release.py22 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/
Dregistry_cache.py90 from urllib2 import urlopen
92 from urllib.request import urlopen
95 req = urlopen(makeSourceUrl(repository, revision, filename))
/third_party/python/Tools/scripts/
Dparse_html5_entities.py14 from urllib.request import urlopen
21 with urlopen(url) as f:
Dcheckpip.py16 data = json.loads(urllib.request.urlopen(
/third_party/python/Lib/distutils/tests/
Dtest_upload.py73 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/
Dcreate.py21 from urllib.request import urlopen
41 f.write(urlopen(DOWNLOAD_URL).read())
/third_party/python/Doc/library/
Durllib.request.rst28 .. 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/
Dupload_to_android.py50 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/
Dstep-01-download-rfc.py8 response = urllib2.urlopen('https://tools.ietf.org/rfc/rfc7932.txt')
/third_party/gstreamer/gstplugins_bad/tests/check/media/
Ddownload-media10 with urllib.request.urlopen(sys.argv[1]) as response, open(sys.argv[2], 'wb') as out_file:
/third_party/python/Lib/distutils/command/
Dupload.py13 from urllib.request import urlopen, Request
195 result = urlopen(request)
/third_party/cef/tools/cefbuilds/
Dcef_json_builder.py14 from urllib2 import urlopen
16 from urllib.request import urlopen
178 handle = urlopen(query_url)
/third_party/skia/tools/
Dretrieve_from_googlesource.py29 with closing(urllib2.urlopen(base64_url)) as f:
/third_party/python/Tools/msi/
Dpurge.py76 with urlopen(Request(u, method='PURGE', headers={'Fastly-Soft-Purge': 1})) as r:

123