summaryrefslogtreecommitdiffstats
path: root/Doc/library/http.client.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-10-06 10:42:18 (GMT)
committerGeorg Brandl <georg@python.org>2013-10-06 10:42:18 (GMT)
commitd277a56af36ee4bd259589e1e1b2b770a1163a4c (patch)
tree2586f5067c55065b24b7c0cc752f39b996a3d76a /Doc/library/http.client.rst
parent3c1271142d7f8d16cea85e68460d1cbdc3581d05 (diff)
downloadcpython-d277a56af36ee4bd259589e1e1b2b770a1163a4c.zip
cpython-d277a56af36ee4bd259589e1e1b2b770a1163a4c.tar.gz
cpython-d277a56af36ee4bd259589e1e1b2b770a1163a4c.tar.bz2
Fix minor bug in httplib example. Found by Alex MacAulay on docs@.
Diffstat (limited to 'Doc/library/http.client.rst')
-rw-r--r--Doc/library/http.client.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst
index 8137573..6931fc6 100644
--- a/Doc/library/http.client.rst
+++ b/Doc/library/http.client.rst
@@ -649,7 +649,7 @@ request using http.client::
>>> conn = http.client.HTTPConnection("localhost", 8080)
>>> conn.request("PUT", "/file", BODY)
>>> response = conn.getresponse()
- >>> print(resp.status, response.reason)
+ >>> print(response.status, response.reason)
200, OK
.. _httpmessage-objects: