]> granicus.if.org Git - python/commitdiff
Fix issue13211 - Document the reason attribute for urllib.error.HTTPError
authorSenthil Kumaran <senthil@uthcode.com>
Sun, 9 Dec 2012 21:51:05 +0000 (13:51 -0800)
committerSenthil Kumaran <senthil@uthcode.com>
Sun, 9 Dec 2012 21:51:05 +0000 (13:51 -0800)
Doc/library/urllib.error.rst

index 282329fe5d718a70c6dbd8403d14a7b750e60af1..9c04859cef3105565414bd5217a04faaa2b69684 100644 (file)
@@ -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