[Python-checkins] cpython (3.3): Fix minor bug in httplib example. Found by Alex MacAulay on docs at .
georg.brandl
python-checkins at python.org
Sun Oct 6 12:42:01 CEST 2013
http://hg.python.org/cpython/rev/6ced4fb4f711
changeset: 86062:6ced4fb4f711
branch: 3.3
parent: 86059:3bc02a63596c
user: Georg Brandl <georg at python.org>
date: Sun Oct 06 12:42:18 2013 +0200
summary:
Fix minor bug in httplib example. Found by Alex MacAulay on docs at .
files:
Doc/library/http.client.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst
--- a/Doc/library/http.client.rst
+++ b/Doc/library/http.client.rst
@@ -649,7 +649,7 @@
>>> 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:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list