Skip to content

Commit c485f0e

Browse files
authored
[3.11] Docs: Fix getstatus() -> getcode() typos (GH-101296) (#101805)
1 parent 8360988 commit c485f0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/library/http.client.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ statement.
530530
.. deprecated:: 3.9
531531
Deprecated in favor of :attr:`~HTTPResponse.headers`.
532532

533-
.. method:: HTTPResponse.getstatus()
533+
.. method:: HTTPResponse.getcode()
534534

535535
.. deprecated:: 3.9
536536
Deprecated in favor of :attr:`~HTTPResponse.status`.

Doc/library/urllib.request.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,7 @@ The typical response object is a :class:`urllib.response.addinfourl` instance:
16301630
.. deprecated:: 3.9
16311631
Deprecated in favor of :attr:`~addinfourl.status`.
16321632

1633-
.. method:: getstatus()
1633+
.. method:: getcode()
16341634

16351635
.. deprecated:: 3.9
16361636
Deprecated in favor of :attr:`~addinfourl.status`.

0 commit comments

Comments
 (0)