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

This commit is contained in:
Xtreak 2018-12-21 21:04:41 +05:30 committed by Serhiy Storchaka
parent 6326278e8a
commit f0af4c54e3

View file

@ -497,6 +497,7 @@ Here is an example session that uses the ``GET`` method::
b'<!doctype html>\n<!--[if"... b'<!doctype html>\n<!--[if"...
... ...
>>> # Example of an invalid request >>> # Example of an invalid request
>>> conn = http.client.HTTPSConnection("docs.python.org")
>>> conn.request("GET", "/parrot.spam") >>> conn.request("GET", "/parrot.spam")
>>> r2 = conn.getresponse() >>> r2 = conn.getresponse()
>>> print(r2.status, r2.reason) >>> print(r2.status, r2.reason)