From 785d1b1703a5642351348f5426c5bba5e710df2d Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Thu, 7 Feb 2013 00:51:34 -0800 Subject: Fix Issue17069: Document getcode method in urllib.request.rst --- Doc/library/urllib2.rst | 2 ++ 1 file changed, 2 insertions(+) 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 `_) + * :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 -- cgit v0.12