diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2012-12-10 10:09:35 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2012-12-10 10:09:35 (GMT) |
commit | 5962cce05065c7d98a42f50b07c0d58c1c61790f (patch) | |
tree | 67b5dcc6d3ac29eafb28519a0c6ab299cd9272ff /Doc | |
parent | 8e5a8296cc18d4f496549551bbf21d60ba535622 (diff) | |
download | cpython-5962cce05065c7d98a42f50b07c0d58c1c61790f.zip cpython-5962cce05065c7d98a42f50b07c0d58c1c61790f.tar.gz cpython-5962cce05065c7d98a42f50b07c0d58c1c61790f.tar.bz2 |
Fix Issue15701 : add .headers attribute to urllib.error.HTTPError
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/urllib.error.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/urllib.error.rst b/Doc/library/urllib.error.rst index 9c3fe91..7bd04b1 100644 --- a/Doc/library/urllib.error.rst +++ b/Doc/library/urllib.error.rst @@ -45,6 +45,13 @@ The following exceptions are raised by :mod:`urllib.error` as appropriate: This is usually a string explaining the reason for this error. + .. attribute:: headers + + The HTTP response headers for the HTTP request that cause the + :exc:`HTTPError`. + + .. versionadded:: 3.4 + .. exception:: ContentTooShortError(msg, content) This exception is raised when the :func:`urlretrieve` function detects that |