Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0af4c5

Browse files
tirkarthiserhiy-storchaka
authored andcommitted
bpo-33830: Fix an example in http.client docs for 404. (GH-7780)
1 parent 6326278 commit f0af4c5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Doc/library/http.client.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ Here is an example session that uses the ``GET`` method::
497497
b'<!doctype html>\n<!--[if"...
498498
...
499499
>>> # Example of an invalid request
500+
>>> conn = http.client.HTTPSConnection("docs.python.org")
500501
>>> conn.request("GET", "/parrot.spam")
501502
>>> r2 = conn.getresponse()
502503
>>> print(r2.status, r2.reason)

0 commit comments

Comments
 (0)