]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix Issue17069: Document getcode method in urllib.request.rst
authorSenthil Kumaran <senthil@uthcode.com>
Thu, 7 Feb 2013 08:51:34 +0000 (00:51 -0800)
committerSenthil Kumaran <senthil@uthcode.com>
Thu, 7 Feb 2013 08:51:34 +0000 (00:51 -0800)
Doc/library/urllib2.rst

index 39d39dbda7c25a64c354888064d39ea5e05c0088..bae5a4b2f5b893d19e16bc24c0a5b990e7501de3 100644 (file)
@@ -52,6 +52,8 @@ The :mod:`urllib2` module defines the following functions:
      in the form of an :class:`mimetools.Message` instance
      (see `Quick Reference to HTTP Headers <http://www.cs.tut.fi/~jkorpela/http.html>`_)
 
+   * :meth:`getcode` --- return the HTTP status code of the response.
+
    Raises :exc:`URLError` on errors.
 
    Note that ``None`` may be returned if no handler handles the request (though the