(original) (raw)
changeset: 80789:e1ba514ddcd2 branch: 3.2 parent: 80783:1ff72360ceb6 user: Senthil Kumaran senthil@uthcode.com date: Sun Dec 09 13:51:05 2012 -0800 files: Doc/library/urllib.error.rst description: Fix issue13211 - Document the reason attribute for urllib.error.HTTPError diff -r 1ff72360ceb6 -r e1ba514ddcd2 Doc/library/urllib.error.rst --- a/Doc/library/urllib.error.rst Sun Dec 09 10:14:42 2012 -0500 +++ b/Doc/library/urllib.error.rst Sun Dec 09 13:51:05 2012 -0800 @@ -39,6 +39,10 @@ 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 /senthil@uthcode.com