Document the reason attribute of urllib.HTTPError Patch by Berker Peksag

This commit is contained in:
Senthil Kumaran 2012-12-09 13:36:40 -08:00
parent 7dddec4e9d
commit bfb0989ea7
1 changed files with 3 additions and 0 deletions

View File

@ -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: