/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_urllibnet.py | 39 f = _open_with_retry(urllib.urlopen, "http://www.python.org/")
43 """Tests urllib.urlopen using the network.
57 def urlopen(self, *args):
member in class:urlopenNetworkTests 58 return _open_with_retry(urllib.urlopen, *args)
62 open_url = self.urlopen("http://www.python.org/")
66 "urlopen lacks the %s attribute" % attr)
74 open_url = self.urlopen("http://www.python.org/")
85 open_url = self.urlopen("http://www.python.org/")
98 open_url = self.urlopen(URL)
122 open_url = self.urlopen("http://www.python.org/") [all...] |
/external/python/cpython2/Lib/test/ |
test_urllibnet.py | 46 f = _open_with_retry(urllib.urlopen, "http://www.example.com/") 50 """Tests urllib.urlopen using the network. 64 def urlopen(self, *args): member in class:urlopenNetworkTests 65 return _open_with_retry(urllib.urlopen, *args) 69 open_url = self.urlopen("http://www.example.com/") 73 "urlopen lacks the %s attribute" % attr) 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/" [all...] |
test_urllib2_localnet.py | 309 self.assertTrue(urllib2.urlopen(self.server_url)) 320 self.assertRaises(urllib2.HTTPError, urllib2.urlopen, self.server_url) 442 """Tests urllib2.urlopen using the network. 456 def urlopen(self, url, data=None, **kwargs): member in class:TestUrlopen 458 f = urllib2.urlopen(url, data, **kwargs) 500 f = urllib2.urlopen('http://localhost:%s/' % handler.port) 516 urllib2.urlopen('http://localhost:%s/weeble' % handler.port) 536 f = urllib2.urlopen('http://localhost:%s/bizarre' % handler.port) 550 f = urllib2.urlopen('http://localhost:%s/bizarre' % handler.port, 'get=with_feeling') 562 data = self.urlopen("https://localhost:%s/bizarre" % handler.port, context=context [all...] |
/external/python/cpython3/Lib/test/ |
test_urllibnet.py | 27 f = urllib.request.urlopen("http://www.example.com/") 32 """Tests urllib.reqest.urlopen using the network. 49 def urlopen(self, *args, **kwargs): member in class:urlopenNetworkTests 52 r = urllib.request.urlopen(*args, **kwargs) 60 with self.urlopen(self.url) as open_url: 64 "urlopen lacks the %s attribute" % attr) 69 with self.urlopen(self.url) as open_url: 77 with self.urlopen(self.url) as open_url: 86 with self.urlopen(self.url) as open_url: 138 urllib.request.urlopen("http://{}/".format(bogus_domain) [all...] |
test_urllib2_localnet.py | 305 self.assertTrue(urllib.request.urlopen(self.server_url)) 313 self.assertRaises(urllib.error.HTTPError, urllib.request.urlopen, self.server_url) 439 """Tests urllib.request.urlopen using the network. 458 def urlopen(self, url, data=None, **kwargs): member in class:TestUrlopen 460 f = urllib.request.urlopen(url, data, **kwargs) 504 data = self.urlopen("http://localhost:%s/" % handler.port) 519 data = self.urlopen("http://localhost:%s/" % handler.port) 527 self.urlopen("http://localhost:%s/weeble" % handler.port) 540 data = self.urlopen("http://localhost:%s/bizarre" % handler.port) 547 data = self.urlopen("http://localhost:%s/bizarre" % handler.port [all...] |
test_urllib.py | 36 def urlopen(url, data=None, proxies=None): function 37 """urlopen(url [, data]) -> open file-like object""" 87 # buffer to store data for verification in urlopen tests. 128 """Test urlopen() opening a temporary file. 145 self.returned_obj = urlopen("file:%s" % self.pathname) 153 # Make sure object returned by urlopen() has the specified methods 157 "object returned by urlopen() lacks %s attribute" % 207 self.assertRaises(ValueError,urllib.request.urlopen,'./' + self.pathname) 298 """Test urlopen() opening a fake http connection.""" 303 fp = urlopen("http://python.org/" [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_urllibnet.py | 39 f = _open_with_retry(urllib.urlopen, "http://www.python.org/") 43 """Tests urllib.urlopen using the network. 57 def urlopen(self, *args): member in class:urlopenNetworkTests 58 return _open_with_retry(urllib.urlopen, *args) 62 open_url = self.urlopen("http://www.python.org/") 66 "urlopen lacks the %s attribute" % attr) 74 open_url = self.urlopen("http://www.python.org/") 85 open_url = self.urlopen("http://www.python.org/") 98 open_url = self.urlopen(URL) 122 open_url = self.urlopen("http://www.python.org/" [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_urllibnet.py | 39 f = _open_with_retry(urllib.urlopen, "http://www.python.org/") 43 """Tests urllib.urlopen using the network. 57 def urlopen(self, *args): member in class:urlopenNetworkTests 58 return _open_with_retry(urllib.urlopen, *args) 62 open_url = self.urlopen("http://www.python.org/") 66 "urlopen lacks the %s attribute" % attr) 74 open_url = self.urlopen("http://www.python.org/") 85 open_url = self.urlopen("http://www.python.org/") 98 open_url = self.urlopen(URL) 122 open_url = self.urlopen("http://www.python.org/" [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_urllibnet.py | 39 f = _open_with_retry(urllib.urlopen, "http://www.python.org/") 43 """Tests urllib.urlopen using the network. 57 def urlopen(self, *args): member in class:urlopenNetworkTests 58 return _open_with_retry(urllib.urlopen, *args) 62 open_url = self.urlopen("http://www.python.org/") 66 "urlopen lacks the %s attribute" % attr) 74 open_url = self.urlopen("http://www.python.org/") 85 open_url = self.urlopen("http://www.python.org/") 98 open_url = self.urlopen(URL) 122 open_url = self.urlopen("http://www.python.org/" [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_urllibnet.py | 39 f = _open_with_retry(urllib.urlopen, "http://www.python.org/") 43 """Tests urllib.urlopen using the network. 57 def urlopen(self, *args): member in class:urlopenNetworkTests 58 return _open_with_retry(urllib.urlopen, *args) 62 open_url = self.urlopen("http://www.python.org/") 66 "urlopen lacks the %s attribute" % attr) 74 open_url = self.urlopen("http://www.python.org/") 85 open_url = self.urlopen("http://www.python.org/") 98 open_url = self.urlopen(URL) 122 open_url = self.urlopen("http://www.python.org/" [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
urllib.py | 32 __all__ = ["urlopen", "URLopener", "FancyURLopener", "urlretrieve",
69 def urlopen(url, data=None, proxies=None):
function 72 warnpy3k("urllib.urlopen() has been removed in Python 3.0 in "
73 "favor of urllib2.urlopen()", stacklevel=2)
[all...] |
urllib2.py | 3 The simplest way to use this module is to call the urlopen function,
17 urlopen(url, data=None) -- Basic usage is the same as original
73 f = urllib2.urlopen('http://www.python.org/')
122 def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
function 147 return '<urlopen error %s>' % self.reason
[all...] |
/external/python/cpython2/Lib/ |
urllib.py | 35 __all__ = ["urlopen", "URLopener", "FancyURLopener", "urlretrieve", 72 def urlopen(url, data=None, proxies=None, context=None): function 75 warnpy3k("urllib.urlopen() has been removed in Python 3.0 in " 76 "favor of urllib2.urlopen()", stacklevel=2) [all...] |
urllib2.py | 3 The simplest way to use this module is to call the urlopen function, 17 urlopen(url, data=None) -- Basic usage is the same as original 73 f = urllib2.urlopen('http://www.python.org/') 131 def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, function 175 return '<urlopen error %s>' % self.reason [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
urllib.py | 35 __all__ = ["urlopen", "URLopener", "FancyURLopener", "urlretrieve", 72 def urlopen(url, data=None, proxies=None): function 75 warnpy3k("urllib.urlopen() has been removed in Python 3.0 in " 76 "favor of urllib2.urlopen()", stacklevel=2) [all...] |
urllib2.py | 3 The simplest way to use this module is to call the urlopen function, 17 urlopen(url, data=None) -- Basic usage is the same as original 73 f = urllib2.urlopen('http://www.python.org/') 123 def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): function 148 return '<urlopen error %s>' % self.reason [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
urllib.py | 35 __all__ = ["urlopen", "URLopener", "FancyURLopener", "urlretrieve", 72 def urlopen(url, data=None, proxies=None): function 75 warnpy3k("urllib.urlopen() has been removed in Python 3.0 in " 76 "favor of urllib2.urlopen()", stacklevel=2) [all...] |
urllib2.py | 3 The simplest way to use this module is to call the urlopen function, 17 urlopen(url, data=None) -- Basic usage is the same as original 73 f = urllib2.urlopen('http://www.python.org/') 123 def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): function 148 return '<urlopen error %s>' % self.reason [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
urllib.py | 35 __all__ = ["urlopen", "URLopener", "FancyURLopener", "urlretrieve", 72 def urlopen(url, data=None, proxies=None): function 75 warnpy3k("urllib.urlopen() has been removed in Python 3.0 in " 76 "favor of urllib2.urlopen()", stacklevel=2) [all...] |
urllib2.py | 3 The simplest way to use this module is to call the urlopen function, 17 urlopen(url, data=None) -- Basic usage is the same as original 73 f = urllib2.urlopen('http://www.python.org/') 123 def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): function 148 return '<urlopen error %s>' % self.reason [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
urllib.py | 35 __all__ = ["urlopen", "URLopener", "FancyURLopener", "urlretrieve", 72 def urlopen(url, data=None, proxies=None): function 75 warnpy3k("urllib.urlopen() has been removed in Python 3.0 in " 76 "favor of urllib2.urlopen()", stacklevel=2) [all...] |
urllib2.py | 3 The simplest way to use this module is to call the urlopen function, 17 urlopen(url, data=None) -- Basic usage is the same as original 73 f = urllib2.urlopen('http://www.python.org/') 123 def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): function 148 return '<urlopen error %s>' % self.reason [all...] |
/external/autotest/client/common_lib/ |
utils.py | 547 def urlopen(url, data=None, timeout=5): function 548 """Wrapper to urllib2.urlopen with timeout addition.""" 554 return urllib2.urlopen(url, data=data) 563 src_file = urlopen(url, data=data, timeout=timeout) [all...] |
utils_unittest.py | 386 def urlopen(url, data=None): function in function:test_urlopen.stub_urlopen_with_timeout_comparison 390 self.god.stub_with(urllib2, "urlopen", urlopen) 403 retval = utils.urlopen("url", timeout=30) 412 utils.urlopen("url", timeout=30) 422 utils.urlopen("url") 428 utils.urlopen("http://url", timeout=30, data="POST data") 441 self.god.stub_function(utils, "urlopen") 453 (utils.urlopen.expect_call(url, data=data, timeout=timeout) [all...] |
/external/python/cpython3/Lib/urllib/ |
request.py | 3 The simplest way to use this module is to call the urlopen function, 17 urlopen(url, data=None) -- Basic usage is the same as original 67 f = urllib.request.urlopen('http://www.python.org/') 130 'urlopen', 'install_opener', 'build_opener', 140 def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, function 248 with contextlib.closing(urlopen(url, data)) as fp: [all...] |