summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-02-17 19:17:25 (GMT)
committerGeorg Brandl <georg@python.org>2006-02-17 19:17:25 (GMT)
commit6aab16e9f6df06ab68f24422dcc50579f500c0b7 (patch)
tree923ad5c91ac916fbd6c5894ae863ea4f8cec48e0 /Doc
parentdde99d2633d7d744730d4464521e936bf1b6b411 (diff)
downloadcpython-6aab16e9f6df06ab68f24422dcc50579f500c0b7.zip
cpython-6aab16e9f6df06ab68f24422dcc50579f500c0b7.tar.gz
cpython-6aab16e9f6df06ab68f24422dcc50579f500c0b7.tar.bz2
Move "httpresponses" dict from urllib2 to httplib where it belongs.
Diffstat (limited to 'Doc')
-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 8f02368..049f6c4 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 842b2a3..706c54b 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}