From: Senthil Kumaran Date: Sun, 9 Dec 2012 21:36:40 +0000 (-0800) Subject: Document the reason attribute of urllib.HTTPError Patch by Berker Peksag X-Git-Tag: v2.7.4rc1~315 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bfb0989ea738b2fc7e79de4907b02d8a964a4960;p=thirdparty%2FPython%2Fcpython.git Document the reason attribute of urllib.HTTPError Patch by Berker Peksag --- diff --git a/Doc/library/urllib2.rst b/Doc/library/urllib2.rst index 1121e5fbfce5..39d39dbda7c2 100644 --- a/Doc/library/urllib2.rst +++ b/Doc/library/urllib2.rst @@ -121,7 +121,10 @@ The following exceptions are raised as appropriate: This numeric value corresponds to a value found in the dictionary of codes as found in :attr:`BaseHTTPServer.BaseHTTPRequestHandler.responses`. + .. attribute:: reason + The reason for this error. It can be a message string or another exception + instance. The following classes are provided: