[Python-checkins] cpython (merge 3.2 -> 3.3): merge from 3.2 - reason attribute for urllib.error.HTTPError

senthil.kumaran python-checkins at python.org
Sun Dec 9 22:53:27 CET 2012


http://hg.python.org/cpython/rev/10ad43456c29
changeset:   80790:10ad43456c29
branch:      3.3
parent:      80784:3571a2808445
parent:      80789:e1ba514ddcd2
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Sun Dec 09 13:52:31 2012 -0800
summary:
  merge from 3.2 - reason attribute for urllib.error.HTTPError

files:
  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
--- a/Doc/library/urllib.error.rst
+++ b/Doc/library/urllib.error.rst
@@ -41,6 +41,10 @@
       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

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


More information about the Python-checkins mailing list