diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2013-02-07 08:51:34 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2013-02-07 08:51:34 (GMT) |
commit | 785d1b1703a5642351348f5426c5bba5e710df2d (patch) | |
tree | d2a009ace697a01ef58730fb29cd7a9a76cbad74 /Doc | |
parent | 9b3085cdf5a99e544fd376b9019544cb6c5de36b (diff) | |
download | cpython-785d1b1703a5642351348f5426c5bba5e710df2d.zip cpython-785d1b1703a5642351348f5426c5bba5e710df2d.tar.gz cpython-785d1b1703a5642351348f5426c5bba5e710df2d.tar.bz2 |
Fix Issue17069: Document getcode method in urllib.request.rst
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/urllib2.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/urllib2.rst b/Doc/library/urllib2.rst index 39d39db..bae5a4b 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 <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 |