/external/python/cpython2/Lib/test/ |
D | test_urllibnet.py | 46 f = _open_with_retry(urllib.urlopen, "http://www.example.com/") 64 def urlopen(self, *args): member in urlopenNetworkTests 65 return _open_with_retry(urllib.urlopen, *args) 69 open_url = self.urlopen("http://www.example.com/") 81 open_url = self.urlopen("http://www.example.com/") 92 open_url = self.urlopen("http://www.example.com/") 105 open_url = self.urlopen(URL) 126 open_url = self.urlopen("http://www.example.com/") 154 urllib.urlopen, "http://sadflkjsasf.i.nvali.d/") 212 response = urllib.urlopen("https://self-signed.pythontest.net", context=context)
|
D | test_urllib2_localnet.py | 307 self.assertTrue(urllib2.urlopen(self.server_url)) 318 self.assertRaises(urllib2.HTTPError, urllib2.urlopen, self.server_url) 451 def urlopen(self, url, data=None, **kwargs): member in TestUrlopen 453 f = urllib2.urlopen(url, data, **kwargs) 495 f = urllib2.urlopen('http://localhost:%s/' % handler.port) 508 urllib2.urlopen('http://localhost:%s/weeble' % handler.port) 525 f = urllib2.urlopen('http://localhost:%s/bizarre' % handler.port) 536 f = urllib2.urlopen('http://localhost:%s/bizarre' % handler.port, 'get=with_feeling') 546 data = self.urlopen("https://localhost:%s/bizarre" % handler.port, context=context) 552 data = self.urlopen("https://localhost:%s/bizarre" % handler.port, [all …]
|
D | test_urllib2net.py | 30 _urlopen_with_retry = _wrap_with_retry_thrice(urllib2.urlopen, urllib2.URLError) 125 self.assertRaises(ValueError, urllib2.urlopen,'./relative_path/to/file') 159 res = urllib2.urlopen(req) 194 req = urllib2.urlopen(URL) 203 urlopen = urllib2.build_opener(*handlers).open 205 urlopen = _wrap_with_retry_thrice(urlopen, urllib2.URLError) 215 f = urlopen(url, req, TIMEOUT)
|
D | test_urllib.py | 84 self.returned_obj = urllib.urlopen("file:%s" % self.pathname) 145 self.assertRaises(ValueError,urllib.urlopen,'./' + self.pathname) 242 fp = urllib.urlopen("http://python.org/") 255 fp = urllib.urlopen(url) 269 self.assertRaises(IOError, urllib.urlopen, "http://python.org/") 285 urllib.urlopen("http://python.org/") 298 self.assertRaises(IOError, urllib.urlopen, 308 self.assertRaises(IOError, urllib.urlopen, 'http://something') 313 self.assertRaises(IOError, urllib.urlopen, 319 fp = urllib.urlopen(tmp_fileurl) [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_urllib2_localnet.py | 307 self.assertTrue(urllib.request.urlopen(self.server_url)) 315 self.assertRaises(urllib.error.HTTPError, urllib.request.urlopen, self.server_url) 459 def urlopen(self, url, data=None, **kwargs): member in TestUrlopen 461 f = urllib.request.urlopen(url, data, **kwargs) 509 data = self.urlopen("http://localhost:%s/" % handler.port) 524 data = self.urlopen("http://localhost:%s/" % handler.port) 532 self.urlopen("http://localhost:%s/weeble" % handler.port) 545 data = self.urlopen("http://localhost:%s/bizarre" % handler.port) 552 data = self.urlopen("http://localhost:%s/bizarre" % handler.port, 560 data = self.urlopen("https://localhost:%s/bizarre" % handler.port, context=context) [all …]
|
D | test_urllibnet.py | 30 f = urllib.request.urlopen(support.TEST_HTTP_URL) 52 def urlopen(self, *args, **kwargs): member in urlopenNetworkTests 55 r = urllib.request.urlopen(*args, **kwargs) 63 with self.urlopen(self.url) as open_url: 72 with self.urlopen(self.url) as open_url: 80 with self.urlopen(self.url) as open_url: 89 with self.urlopen(self.url) as open_url: 141 urllib.request.urlopen("http://{}/".format(bogus_domain))
|
D | test_urllib2net.py | 39 _urlopen_with_retry = _wrap_with_retry_thrice(urllib.request.urlopen, 129 self.assertRaises(ValueError, urllib.request.urlopen,'./relative_path/to/file') 163 res = urllib.request.urlopen(req) 171 res = urllib.request.urlopen(req) 197 with urllib.request.urlopen(URL) as res: 205 req = urllib.request.urlopen(URL) 214 urlopen = urllib.request.build_opener(*handlers).open 216 urlopen = _wrap_with_retry_thrice(urlopen, urllib.error.URLError) 227 f = urlopen(url, req, TIMEOUT)
|
D | test_urllib.py | 36 def urlopen(url, data=None, proxies=None): function 145 self.returned_obj = urlopen("file:%s" % self.pathname) 207 self.assertRaises(ValueError,urllib.request.urlopen,'./' + self.pathname) 306 fp = urlopen("http://python.org/") 319 fp = urllib.request.urlopen(url) 327 resp = urlopen("http://www.python.org") 352 self.assertRaises(OSError, urlopen, "http://python.org/") 368 urlopen("http://python.org/") 381 self.assertRaises(urllib.error.HTTPError, urlopen, 391 self.assertRaises(OSError, urlopen, "http://something") [all …]
|
/external/perfetto/tools/ |
D | extract_linux_syscall_tables | 44 response = urllib2.urlopen(KSRC + 'arch/x86/entry/syscalls/syscall_64.tbl') 47 response = urllib2.urlopen(KSRC + 'arch/arm/tools/syscall.tbl') 50 response = urllib2.urlopen(KSRC + 'arch/arm64/include/asm/unistd32.h') 57 response = urllib2.urlopen(KSRC + 'include/uapi/asm-generic/unistd.h')
|
/external/autotest/client/common_lib/cros/fake_device_server/client_lib/ |
D | commands.py | 31 url_h = urllib2.urlopen(request) 42 url_h = urllib2.urlopen(request) 65 url_h = urllib2.urlopen(request) 80 url_h = urllib2.urlopen(request)
|
D | registration.py | 29 url_h = urllib2.urlopen(self.get_url([ticket_id])) 58 url_h = urllib2.urlopen(request) 74 url_h = urllib2.urlopen(request) 85 url_h = urllib2.urlopen(request)
|
D | devices.py | 31 url_h = urllib2.urlopen(request) 39 url_h = urllib2.urlopen(request) 56 url_h = urllib2.urlopen(request)
|
D | oauth.py | 28 url_h = urllib2.urlopen(request) 38 url_h = urllib2.urlopen(request)
|
D | fail_control.py | 28 url_h = urllib2.urlopen(request) 37 url_h = urllib2.urlopen(request)
|
/external/autotest/server/ |
D | lab_status_unittest.py | 127 urllib2.urlopen(mox.IgnoreArg()).AndReturn( 139 urllib2.urlopen(mox.IgnoreArg()).AndRaise( 142 urllib2.urlopen(mox.IgnoreArg()).AndReturn( 154 urllib2.urlopen(mox.IgnoreArg()).AndReturn( 157 urllib2.urlopen(mox.IgnoreArg()).AndReturn( 170 urllib2.urlopen(mox.IgnoreArg()).AndRaise( 184 urllib2.urlopen(mox.IgnoreArg()).AndReturn(
|
/external/grpc-grpc/tools/run_tests/python_utils/ |
D | start_port_server.py | 36 urllib.urlopen('http://localhost:%d/version_number' % 54 urllib.urlopen( 95 urllib.urlopen( 108 urllib.urlopen(port_server_url).read()
|
/external/deqp/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) 201 from urllib2 import urlopen 203 from urllib.request import urlopen 208 result = urlopen(url, context=ssl_context) 210 result = urlopen(url)
|
/external/python/futures/ |
D | crawl.py | 9 from urllib2 import urlopen 11 from urllib.request import urlopen 30 return urlopen(url, **kwargs).read()
|
/external/python/cpython2/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 response = urllib2.urlopen('http://python.org/') 67 object that specifies the URL you want to fetch. Calling ``urlopen`` with this 75 response = urllib2.urlopen(req) 112 response = urllib2.urlopen(req) 143 >>> data = urllib2.urlopen(full_url) 177 response = urllib2.urlopen(req) 187 *urlopen* raises :exc:`URLError` when it cannot handle a response (though as 205 >>> try: urllib2.urlopen(req) [all …]
|
/external/python/cpython2/Doc/library/ |
D | urllib.rst | 12 Also note that the :func:`urllib.request.urlopen` function in Python 3 is 13 equivalent to :func:`urllib2.urlopen` and that :func:`urllib.urlopen` has 22 Wide Web. In particular, the :func:`urlopen` function is similar to the 44 .. function:: urlopen(url[, data[, proxies[, context]]]) 80 HTTP server redirects a client to another URL. The :func:`urlopen` function 94 The :func:`urlopen` function works transparently with proxies which do not 115 In a Mac OS X environment, :func:`urlopen` will retrieve proxy information 128 filehandle = urllib.urlopen(some_url, proxies=proxies) 130 filehandle = urllib.urlopen(some_url, proxies={}) 132 filehandle = urllib.urlopen(some_url, proxies=None) [all …]
|
/external/python/cpython3/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 …]
|
/external/toolchain-utils/cwp/interpreter/ |
D | app_engine_pull.py | 58 auth_resp = urllib2.urlopen(auth_req) 151 serv_resp = urllib2.urlopen(serv_req) 198 urllib2.urlopen(serv_req) 214 serv_resp = urllib2.urlopen(serv_req)
|
/external/scapy/test/ |
D | nmap.uts | 23 from urllib.request import urlopen 25 from urllib2 import urlopen 29 …open('nmap-os-fingerprints', 'wb').write(urlopen('https://raw.githubusercontent.com/nmap/nmap/9efe…
|
/external/autotest/site_utils/ |
D | set_tree_status.py | 22 response = urllib.urlopen(CHROMEOS_STATUS_SERVER + '/current?format=raw') 46 urllib.urlopen(CHROMEOS_STATUS_SERVER + '/status', urllib.urlencode(data))
|
/external/autotest/client/cros/enterprise/ |
D | enterprise_fake_dmserver.py | 61 if urllib2.urlopen('%stest/ping' % self.server_url).getcode() == 200: 62 urllib2.urlopen('%sconfiguration/test/exit' % self.server_url)
|