[Python-checkins] cpython (2.7): 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:06 CEST 2013
http://hg.python.org/cpython/rev/0c680936036c
changeset: 86064:0c680936036c
branch: 2.7
parent: 86061:9b1a81aed523
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/httplib.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/httplib.rst b/Doc/library/httplib.rst
--- a/Doc/library/httplib.rst
+++ b/Doc/library/httplib.rst
@@ -626,6 +626,6 @@
>>> conn = httplib.HTTPConnection("localhost", 8080)
>>> conn.request("PUT", "/file", BODY)
>>> response = conn.getresponse()
- >>> print resp.status, response.reason
+ >>> print response.status, response.reason
200, OK
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list