From: Fred Drake Date: Fri, 21 Dec 2001 03:52:04 +0000 (+0000) Subject: Fix typo in httplib example. X-Git-Tag: v2.2.1c1~277 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dce2e1161addf3eb4dbb424739f1480da7249404;p=thirdparty%2FPython%2Fcpython.git Fix typo in httplib example. This fixes SF bug #495221. --- diff --git a/Doc/lib/libhttplib.tex b/Doc/lib/libhttplib.tex index cfe008bdd096..685a0bf1600f 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()