diff -r f4f5b942e5e0 Doc/library/urllib.request.rst --- a/Doc/library/urllib.request.rst Thu Oct 30 10:17:59 2014 +0100 +++ b/Doc/library/urllib.request.rst Tue Nov 04 15:39:31 2014 -0500 @@ -84,8 +84,10 @@ `Quick Reference to HTTP Headers `_) * :meth:`~urllib.response.addinfourl.getcode` -- return the HTTP status code of the response. - - Raises :exc:`~urllib.error.URLError` on errors. + + Raises :exc:`ValueError` if given an invalid url. + Raises :exc:`ValueError` if given CA certificates and cannot support SSL. + Raises :exc:`~urllib.error.URLError` on other errors. Note that ``None`` may be returned if no handler handles the request (though the default installed global :class:`OpenerDirector` uses