diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2012-12-09 21:52:31 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2012-12-09 21:52:31 (GMT) |
commit | 50cdd55af9529dee95e71a89741d942d06e3c4b8 (patch) | |
tree | 49643242ff18a81d6a9cd11341b46569c098e4d3 /Doc/library/urllib.error.rst | |
parent | 4b7743a3ef3ad0220f876ae156f337461c327004 (diff) | |
parent | 2e72831369b8e6239757c1b20af417e2746a151f (diff) | |
download | cpython-50cdd55af9529dee95e71a89741d942d06e3c4b8.zip cpython-50cdd55af9529dee95e71a89741d942d06e3c4b8.tar.gz cpython-50cdd55af9529dee95e71a89741d942d06e3c4b8.tar.bz2 |
merge from 3.2 - reason attribute for urllib.error.HTTPError
Diffstat (limited to 'Doc/library/urllib.error.rst')
-rw-r--r-- | Doc/library/urllib.error.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/urllib.error.rst b/Doc/library/urllib.error.rst index e20db27..9c3fe91 100644 --- a/Doc/library/urllib.error.rst +++ b/Doc/library/urllib.error.rst @@ -41,6 +41,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 |