]> granicus.if.org Git - python/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/httplib.rst

index 472fa61e13dd10e7f2e0c38af0d572ce5d78584f..fcdfbc015d457c30425954b68710368603bb7743 100644 (file)
@@ -626,6 +626,6 @@ be created via ``PUT`` request. Here is an example session that shows how to do
     >>> 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