summaryrefslogtreecommitdiff
path: root/Doc/lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-02-17 19:17:25 +0000
committerGeorg Brandl <georg@python.org>2006-02-17 19:17:25 +0000
commit1f062627663ece0db86982039e254756ad6801f8 (patch)
tree454bc2996a5cb97740b5ec1be6c1501b17de67b7 /Doc/lib
parent85065935ef79f5757e70c0acbe6759438ecc530c (diff)
downloadcpython-1f062627663ece0db86982039e254756ad6801f8.tar.gz
Move "httpresponses" dict from urllib2 to httplib where it belongs.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libhttplib.tex8
-rw-r--r--Doc/lib/liburllib2.tex9
2 files changed, 8 insertions, 9 deletions
diff --git a/Doc/lib/libhttplib.tex b/Doc/lib/libhttplib.tex
index 8f02368e22..049f6c4804 100644
--- a/Doc/lib/libhttplib.tex
+++ b/Doc/lib/libhttplib.tex
@@ -288,6 +288,14 @@ and also the following constants for integer status codes:
{An HTTP Extension Framework, \rfc{2774}, Section 7}
\end{tableiii}
+\begin{datadesc}{responses}
+This dictionary maps the HTTP 1.1 status codes to the W3C names.
+
+Example: \code{httplib.responses[httplib.NOT_FOUND]} is \code{'Not Found'}.
+\versionadded{2.5}
+\end{datadesc}
+
+
\subsection{HTTPConnection Objects \label{httpconnection-objects}}
\class{HTTPConnection} instances have the following methods:
diff --git a/Doc/lib/liburllib2.tex b/Doc/lib/liburllib2.tex
index 842b2a31ee..706c54b4e8 100644
--- a/Doc/lib/liburllib2.tex
+++ b/Doc/lib/liburllib2.tex
@@ -71,15 +71,6 @@ set to \code{500}.
\end{funcdesc}
-The following attribute is defined:
-
-\begin{datadesc}{httpresponses}
-A mapping between HTTP status codes and the W3C names.
-
-Example: \code{urllib2.httpresponses[404]} is \code{'Not Found'}.
-\versionadded{2.5}
-\end{datadesc}
-
The following exceptions are raised as appropriate:
\begin{excdesc}{URLError}