Skip to content

Commit 7824032

Browse files
authored
Fix the HTTPStatus reprs in the http docs example (#162578)
1 parent 1b908e1 commit 7824032

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Doc/library/http.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The :mod:`!http` module also defines the following enums that help you work with
3535

3636
>>> from http import HTTPStatus
3737
>>> HTTPStatus.OK
38-
HTTPStatus.OK
38+
<HTTPStatus.OK: 200>
3939
>>> HTTPStatus.OK == 200
4040
True
4141
>>> HTTPStatus.OK.value
@@ -45,7 +45,7 @@ The :mod:`!http` module also defines the following enums that help you work with
4545
>>> HTTPStatus.OK.description
4646
'Request fulfilled, document follows'
4747
>>> list(HTTPStatus)
48-
[HTTPStatus.CONTINUE, HTTPStatus.SWITCHING_PROTOCOLS, ...]
48+
[<HTTPStatus.CONTINUE: 100>, <HTTPStatus.SWITCHING_PROTOCOLS: 101>, ...]
4949

5050
.. _http-status-codes:
5151

0 commit comments

Comments
 (0)