[Python-checkins] bpo-33830: Fix an example in http.client docs for 404. (GH-7780)

Miss Islington (bot) webhook-mailer at python.org
Fri Dec 21 10:41:07 EST 2018


https://github.com/python/cpython/commit/26ab036098cc0f9e884ef87894f064268a24da0f
commit: 26ab036098cc0f9e884ef87894f064268a24da0f
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-12-21T07:41:01-08:00
summary:

bpo-33830: Fix an example in http.client docs for 404. (GH-7780)

(cherry picked from commit f0af4c54e32d963e1ccbac005bcbcab1913e051f)

Co-authored-by: Xtreak <tirkarthi at users.noreply.github.com>

files:
M Doc/library/http.client.rst

diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst
index c4b7c79730f4..3408c103e2f3 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)



More information about the Python-checkins mailing list