cpython: 361c10d06b9c (original) (raw)
Mercurial > cpython
changeset 89634:361c10d06b9c
whatsnew: HTTPError.headers (#15701). [#15701]
R David Murray rdmurray@bitdance.com | |
---|---|
date | Thu, 13 Mar 2014 11:33:29 -0400 |
parents | 8ca08f43eb1e |
children | d575398d1916 |
files | Doc/library/urllib.error.rst Doc/whatsnew/3.4.rst |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-)[+] [-] Doc/library/urllib.error.rst 2 Doc/whatsnew/3.4.rst 5 |
line wrap: on
line diff
--- a/Doc/library/urllib.error.rst +++ b/Doc/library/urllib.error.rst @@ -48,7 +48,7 @@ The following exceptions are raised by : .. attribute:: headers
The HTTP response headers for the HTTP request that cause the[](#l1.7)
The HTTP response headers for the HTTP request that caused the[](#l1.8) :exc:`HTTPError`.[](#l1.9)
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -1627,6 +1627,11 @@ headers from a :class:~urllib.request.R[](#l2.3) Kachayev in :issue:
16464, Daniel Wozniak in :issue:
17485, and Damien Brecht[](#l2.4) and Senthil Kumaran in :issue:
17272.)[](#l2.5) [](#l2.6) +:class:
urllib.error.HTTPErrorurllib.error.HTTPError.headers objects now have a[](#l2.7) +:attr:
attribute that provides access to the[](#l2.8) +HTTP response headers associated with the error. (Contributed by[](#l2.9) +Berker Peksag in :issue:
15701`.)
+
unittest
--------