[Python-checkins] cpython: whatsnew: HTTPError.headers (#15701).

r.david.murray python-checkins at python.org
Thu Mar 13 17:01:11 CET 2014


http://hg.python.org/cpython/rev/361c10d06b9c
changeset:   89634:361c10d06b9c
user:        R David Murray <rdmurray at bitdance.com>
date:        Thu Mar 13 11:33:29 2014 -0400
summary:
  whatsnew: HTTPError.headers (#15701).

files:
  Doc/library/urllib.error.rst |  2 +-
  Doc/whatsnew/3.4.rst         |  5 +++++
  2 files changed, 6 insertions(+), 1 deletions(-)


diff --git a/Doc/library/urllib.error.rst b/Doc/library/urllib.error.rst
--- a/Doc/library/urllib.error.rst
+++ b/Doc/library/urllib.error.rst
@@ -48,7 +48,7 @@
 
    .. attribute:: headers
 
-      The HTTP response headers for the HTTP request that cause the
+      The HTTP response headers for the HTTP request that caused the
       :exc:`HTTPError`.
 
       .. versionadded:: 3.4
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -1627,6 +1627,11 @@
 Kachayev in :issue:`16464`, Daniel Wozniak in :issue:`17485`, and Damien Brecht
 and Senthil Kumaran in :issue:`17272`.)
 
+:class:`~urllib.error.HTTPError` objects now have a
+:attr:`~urllib.error.HTTPError.headers` attribute that provides access to the
+HTTP response headers associated with the error.  (Contributed by
+Berker Peksag in :issue:`15701`.)
+
 
 unittest
 --------

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list