summaryrefslogtreecommitdiffstats
path: root/Doc/library/http.client.rst
diff options
context:
space:
mode:
authorXtreak <tirkarthi@users.noreply.github.com>2018-12-21 15:34:41 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-12-21 15:34:41 (GMT)
commitf0af4c54e32d963e1ccbac005bcbcab1913e051f (patch)
tree45eb216ff0323e367c28ffe15b181722e5f7136c /Doc/library/http.client.rst
parent6326278e8a3a4b6ac41a74effa63331b1b9fdf5c (diff)
downloadcpython-f0af4c54e32d963e1ccbac005bcbcab1913e051f.zip
cpython-f0af4c54e32d963e1ccbac005bcbcab1913e051f.tar.gz
cpython-f0af4c54e32d963e1ccbac005bcbcab1913e051f.tar.bz2
bpo-33830: Fix an example in http.client docs for 404. (GH-7780)
Diffstat (limited to 'Doc/library/http.client.rst')
-rw-r--r--Doc/library/http.client.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst
index c4b7c79..3408c10 100644
--- a/Doc/library/http.client.rst
+++ b/Doc/library/http.client.rst
@@ -497,6 +497,7 @@ Here is an example session that uses the ``GET`` method::
b'<!doctype html>\n<!--[if"...
...
>>> # Example of an invalid request
+ >>> conn = http.client.HTTPSConnection("docs.python.org")
>>> conn.request("GET", "/parrot.spam")
>>> r2 = conn.getresponse()
>>> print(r2.status, r2.reason)