summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-12-21 03:52:04 (GMT)
committerFred Drake <fdrake@acm.org>2001-12-21 03:52:04 (GMT)
commitdce2e1161addf3eb4dbb424739f1480da7249404 (patch)
treeb21aa5c9b833a79de7d19e7e65f54fa973bbe35d /Doc/lib
parent23d45f4744519915ea09662da6fcfd92c37b92a9 (diff)
downloadcpython-dce2e1161addf3eb4dbb424739f1480da7249404.zip
cpython-dce2e1161addf3eb4dbb424739f1480da7249404.tar.gz
cpython-dce2e1161addf3eb4dbb424739f1480da7249404.tar.bz2
Fix typo in httplib example.
This fixes SF bug #495221.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libhttplib.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/lib/libhttplib.tex b/Doc/lib/libhttplib.tex
index cfe008b..685a0bf 100644
--- a/Doc/lib/libhttplib.tex
+++ b/Doc/lib/libhttplib.tex
@@ -214,7 +214,7 @@ Here is an example session that shows how to \samp{POST} requests:
... "Accept": "text/plain"}
>>> conn = httplib.HTTPConnection("musi-cal.mojam.com:80")
>>> conn.request("POST", "/cgi-bin/query", params, headers)
->>> response = h.getresponse()
+>>> response = conn.getresponse()
>>> print response.status, response.reason
200 OK
>>> data = response.read()