Skip to content

Commit

Permalink
[3.11] Docs: Fix getstatus() -> getcode() typos (GH-101296) (#101805)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Feb 10, 2023
1 parent 8360988 commit c485f0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Doc/library/http.client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ statement.
.. deprecated:: 3.9
Deprecated in favor of :attr:`~HTTPResponse.headers`.

.. method:: HTTPResponse.getstatus()
.. method:: HTTPResponse.getcode()

.. deprecated:: 3.9
Deprecated in favor of :attr:`~HTTPResponse.status`.
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/urllib.request.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,7 @@ The typical response object is a :class:`urllib.response.addinfourl` instance:
.. deprecated:: 3.9
Deprecated in favor of :attr:`~addinfourl.status`.

.. method:: getstatus()
.. method:: getcode()

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

0 comments on commit c485f0e

Please sign in to comment.