summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-02-07 08:51:34 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2013-02-07 08:51:34 (GMT)
commit785d1b1703a5642351348f5426c5bba5e710df2d (patch)
treed2a009ace697a01ef58730fb29cd7a9a76cbad74 /Doc
parent9b3085cdf5a99e544fd376b9019544cb6c5de36b (diff)
downloadcpython-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.rst2
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