Home
last modified time | relevance | path

Searched refs:URLError (Results 1 - 11 of 11) sorted by relevance

/third_party/python/Lib/urllib/
H A Derror.py3 The base exception class is URLError, which inherits from OSError. It
16 __all__ = ['URLError', 'HTTPError', 'ContentTooShortError']
19 class URLError(OSError): class
20 # URLError is a sub-type of OSError, but it doesn't share any of
35 class HTTPError(URLError, urllib.response.addinfourl):
55 # since URLError specifies a .reason attribute, HTTPError should also
70 class ContentTooShortError(URLError):
73 URLError.__init__(self, message)
H A Drequest.py20 a Request instance instead of URL. Raises a URLError (subclass of
102 from urllib.error import URLError, HTTPError, ContentTooShortError namespace
1192 raise URLError("qop '%s' is not supported." % qop)
1272 raise URLError('no host given')
1314 raise URLError('no host given')
1351 raise URLError(err)
1419 raise URLError('unknown url type: %s' % type)
1481 raise URLError("file:// scheme is supported only on localhost")
1522 raise URLError(exp)
1523 raise URLError('fil
[all...]
/third_party/python/Lib/test/
H A Dtest_urllib2net.py35 urllib.error.URLError)
142 None, urllib.error.URLError),
155 urllib.error.URLError),
248 urlopen = _wrap_with_retry_thrice(urlopen, urllib.error.URLError)
260 # urllib.error.URLError is a subclass of OSError
H A Dtest_urllib2_localnet.py390 except urllib.error.URLError:
393 # a URLError.
541 except urllib.error.URLError as f:
545 self.fail("404 should raise URLError")
579 with self.assertRaises(urllib.error.URLError) as cm:
584 with self.assertRaises(urllib.error.URLError) as cm:
592 with self.assertRaises(urllib.error.URLError) as cm:
H A Dtest_urllib2.py83 err = urllib.error.URLError('reason')
430 raise urllib.error.URLError("blah")
577 from urllib.error import URLError namespace
587 self.assertRaises(URLError, o.open, scheme+"://example.com/")
634 # raising URLError stops processing of request
643 self.assertRaises(urllib.error.URLError, o.open, req)
844 self.assertRaises(urllib.error.URLError,
868 except urllib.error.URLError:
905 # check OSError converted to URLError
907 self.assertRaises(urllib.error.URLError,
[all...]
H A Dtest_urllib.py525 with self.assertRaises(urllib.error.URLError) as e:
541 with self.assertRaises(urllib.error.URLError):
546 with self.assertRaises(urllib.error.URLError) as e:
552 with self.assertRaises(urllib.error.URLError) as e:
H A Dtest_sax.py24 from urllib.error import URLError namespace
995 with self.assertRaises(URLError):
/third_party/skia/tools/
H A Dcompare_codereview.py52 except (urllib2.URLError,):
173 except (urllib2.URLError,):
/third_party/skia/tools/skqp/
H A Dfind_commit_with_best_gold_results.py70 except urllib2.URLError:
/third_party/python/Lib/test/support/
H A Dsocket_helper.py235 (isinstance(err, urllib.error.URLError) and
/third_party/python/Lib/distutils/command/
H A Dregister.py295 except urllib.error.URLError as e:

Completed in 13 milliseconds