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

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


http://hg.python.org/cpython/rev/dc8c54069a84
changeset:   80791:dc8c54069a84
parent:      80787:fae25c3cff28
parent:      80790:10ad43456c29
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Sun Dec 09 13:53:15 2012 -0800
summary:
  merge from 3.3 - Document 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