[Python-checkins] cpython (3.2): Fix issue13211 - Document the reason attribute for urllib.error.HTTPError

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


http://hg.python.org/cpython/rev/e1ba514ddcd2
changeset:   80789:e1ba514ddcd2
branch:      3.2
parent:      80783:1ff72360ceb6
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Sun Dec 09 13:51:05 2012 -0800
summary:
  Fix issue13211 - Document the 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
@@ -39,6 +39,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