diff options
author | Georg Brandl <georg@python.org> | 2007-09-04 07:15:32 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-04 07:15:32 (GMT) |
commit | 6911e3ce3f72af759908b869b73391ea00d328e2 (patch) | |
tree | 5d4ff6070cb3f0f46f0a31ee4805b41053a06b48 /Doc/library/httplib.rst | |
parent | c9879246a2dd33a217960496fdf4606cb117c6a6 (diff) | |
download | cpython-6911e3ce3f72af759908b869b73391ea00d328e2.zip cpython-6911e3ce3f72af759908b869b73391ea00d328e2.tar.gz cpython-6911e3ce3f72af759908b869b73391ea00d328e2.tar.bz2 |
Convert all print statements in the docs.
Diffstat (limited to 'Doc/library/httplib.rst')
-rw-r--r-- | Doc/library/httplib.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/httplib.rst b/Doc/library/httplib.rst index badffb2..03fe681 100644 --- a/Doc/library/httplib.rst +++ b/Doc/library/httplib.rst @@ -475,12 +475,12 @@ Here is an example session that uses the ``GET`` method:: >>> conn = httplib.HTTPConnection("www.python.org") >>> conn.request("GET", "/index.html") >>> r1 = conn.getresponse() - >>> print r1.status, r1.reason + >>> print(r1.status, r1.reason) 200 OK >>> data1 = r1.read() >>> conn.request("GET", "/parrot.spam") >>> r2 = conn.getresponse() - >>> print r2.status, r2.reason + >>> print(r2.status, r2.reason) 404 Not Found >>> data2 = r2.read() >>> conn.close() @@ -494,7 +494,7 @@ Here is an example session that shows how to ``POST`` requests:: >>> conn = httplib.HTTPConnection("musi-cal.mojam.com:80") >>> conn.request("POST", "/cgi-bin/query", params, headers) >>> response = conn.getresponse() - >>> print response.status, response.reason + >>> print(response.status, response.reason) 200 OK >>> data = response.read() >>> conn.close() |