From: Senthil Kumaran Date: Sun, 9 Dec 2012 21:51:05 +0000 (-0800) Subject: Fix issue13211 - Document the reason attribute for urllib.error.HTTPError X-Git-Tag: v3.2.4rc1~283 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e72831369b8e6239757c1b20af417e2746a151f;p=thirdparty%2FPython%2Fcpython.git Fix issue13211 - Document the reason attribute for urllib.error.HTTPError --- diff --git a/Doc/library/urllib.error.rst b/Doc/library/urllib.error.rst index 282329fe5d71..9c04859cef31 100644 --- a/Doc/library/urllib.error.rst +++ b/Doc/library/urllib.error.rst @@ -39,6 +39,10 @@ The following exceptions are raised by :mod:`urllib.error` as appropriate: to a value found in the dictionary of codes as found in :attr:`http.server.BaseHTTPRequestHandler.responses`. + .. attribute:: reason + + This is usually a string explaining the reason for this error. + .. exception:: ContentTooShortError(msg, content) This exception is raised when the :func:`urlretrieve` function detects that