/external/python/cpython2/Lib/test/ |
D | test_urllib2net.py | 30 _urlopen_with_retry = _wrap_with_retry_thrice(urllib2.urlopen, urllib2.URLError) 107 None, urllib2.URLError), 119 ('file:///nonsensename/etc/passwd', None, urllib2.URLError), 204 urlopen = _wrap_with_retry_thrice(urlopen, urllib2.URLError) 221 except urllib2.URLError as err:
|
D | test_urllib2_localnet.py | 388 except urllib2.URLError: 517 except urllib2.URLError, f: 572 with self.assertRaises(urllib2.URLError): 584 with self.assertRaises(urllib2.URLError):
|
D | test_urllib2.py | 362 raise urllib2.URLError("blah") 477 from urllib2 import URLError 487 self.assertRaises(URLError, o.open, scheme+"://example.com/") 543 self.assertRaises(urllib2.URLError, o.open, req) 741 self.assertRaises(urllib2.URLError, 767 except (urllib2.URLError, OSError): 806 self.assertRaises(urllib2.URLError, h.do_open, http, req)
|
/external/python/cpython2/Lib/ |
D | urllib2.py | 164 class URLError(IOError): class 177 class HTTPError(URLError, addinfourl): 1049 raise URLError("qop '%s' is not supported." % qop) 1126 raise URLError('no host given') 1164 raise URLError('no host given') 1198 raise URLError(err) 1266 raise URLError('unknown url type: %s' % type) 1376 raise URLError(msg) 1377 raise URLError('file not on local host') 1385 raise URLError('ftp error: no host given') [all …]
|
/external/autotest/client/common_lib/cros/fake_device_server/client_lib/ |
D | meta.py | 33 except urllib2.URLError:
|
/external/python/cpython2/Doc/howto/ |
D | urllib2.rst | 187 *urlopen* raises :exc:`URLError` when it cannot handle a response (though as 191 :exc:`HTTPError` is the subclass of :exc:`URLError` raised in the specific case of 194 URLError section in Handling Exceptions 197 Often, URLError is raised because there is no network connection (no route to 206 ... except URLError as e: 330 So if you want to be prepared for :exc:`HTTPError` *or* :exc:`URLError` there are two 339 from urllib2 import Request, urlopen, URLError, HTTPError 346 except URLError as e: 355 The ``except HTTPError`` *must* come first, otherwise ``except URLError`` 363 from urllib2 import Request, urlopen, URLError [all …]
|
/external/autotest/site_utils/ |
D | hwid_lib.py | 63 except (urllib2.URLError, urllib2.HTTPError) as e:
|
D | hwid_lib_unittest.py | 73 @mock.patch('urllib2.urlopen', side_effect=urllib2.URLError('url error'))
|
/external/autotest/server/site_tests/provision_AutoUpdate/ |
D | provision_AutoUpdate.py | 102 except (dev_server.DevServerException, urllib2.URLError) as e2:
|
/external/skia/tools/ |
D | compare_codereview.py | 52 except (urllib2.URLError,): 173 except (urllib2.URLError,):
|
/external/autotest/client/common_lib/ |
D | file_utils.py | 163 except urllib2.URLError as e:
|
/external/autotest/site_utils/chromeos_proxy/ |
D | swarming_bot_manager.py | 95 except urllib2.URLError as e:
|
/external/toolchain-utils/cwp/bartlett/test/ |
D | server_tester.py | 95 except urllib2.URLError:
|
/external/autotest/client/common_lib/cros/ |
D | dev_server_unittest.py | 323 urllib2.URLError('urlopen connection timeout')) 377 refused = urllib2.URLError('[Errno 111] Connection refused') 404 refused = urllib2.URLError('[Errno 111] Connection refused') 430 refused = urllib2.URLError('[Errno 111] Connection refused') 556 refused = urllib2.URLError('[Errno 111] Connection refused') 586 refused = urllib2.URLError('[Errno 111] Connection refused') 796 refused = urllib2.URLError('[Errno 111] Connection refused')
|
D | chromedriver.py | 201 except urllib2.URLError as e:
|
/external/autotest/tko/ |
D | retrieve_logs.cgi | 78 except urllib2.URLError:
|
/external/toolchain-utils/cwp/interpreter/ |
D | app_engine_pull.py | 59 except urllib2.URLError:
|
/external/autotest/tko/perf_upload/ |
D | perf_uploader.py | 269 except urllib2.URLError as e:
|
/external/autotest/server/ |
D | site_autotest.py | 53 except (ImportError, urllib2.URLError):
|
/external/v8/tools/clang/scripts/ |
D | update.py | 119 raise urllib2.URLError("only got %d of %d bytes" % 123 except urllib2.URLError as e: 438 except urllib2.URLError:
|
/external/python/cpython2/Lib/distutils/command/ |
D | register.py | 305 except urllib2.URLError, e:
|
/external/v8/tools/release/ |
D | create_release.py | 94 except urllib2.URLError: # pragma: no cover
|
D | push_to_candidates.py | 136 except urllib2.URLError: # pragma: no cover
|
/external/python/cpython2/Doc/library/ |
D | urllib2.rst | 71 Raises :exc:`URLError` on errors. 121 .. exception:: URLError 135 Though being an exception (a subclass of :exc:`URLError`), an :exc:`HTTPError` 512 value (ie. a response), or raises an exception (usually :exc:`URLError`). 572 It should raise :exc:`URLError`, unless a truly exceptional thing happens (for 573 example, :exc:`MemoryError` should not be mapped to :exc:`URLError`). 923 Raise a :exc:`URLError` exception.
|
/external/autotest/server/site_tests/enterprise_LongevityTrackerServer/ |
D | enterprise_LongevityTrackerServer.py | 134 except urllib2.URLError as e:
|