From: Senthil Kumaran Date: Thu, 7 Feb 2013 08:51:34 +0000 (-0800) Subject: Fix Issue17069: Document getcode method in urllib.request.rst X-Git-Tag: v2.7.4rc1~148 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=785d1b1703a5642351348f5426c5bba5e710df2d;p=thirdparty%2FPython%2Fcpython.git Fix Issue17069: Document getcode method in urllib.request.rst --- diff --git a/Doc/library/urllib2.rst b/Doc/library/urllib2.rst index 39d39dbda7c2..bae5a4b2f5b8 100644 --- a/Doc/library/urllib2.rst +++ b/Doc/library/urllib2.rst @@ -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 `_) + * :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