]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix minor bug in httplib example. Found by Alex MacAulay on docs@.
authorGeorg Brandl <georg@python.org>
Sun, 6 Oct 2013 10:42:18 +0000 (12:42 +0200)
committerGeorg Brandl <georg@python.org>
Sun, 6 Oct 2013 10:42:18 +0000 (12:42 +0200)
Doc/library/http.client.rst

index 8137573aa8b1f7be6acfd24c75a5e2e645e36777..6931fc6a7ffbf3a32a014ec33626f0b02799e43d 100644 (file)
@@ -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: