Skip to content

Commit

Permalink
Docs: Fix getstatus() -> getcode() typos (GH-101296)
Browse files Browse the repository at this point in the history
(cherry picked from commit 61f2be0)

Co-authored-by: Hugo van Kemenade <[email protected]>
  • Loading branch information
miss-islington and hugovk authored Feb 10, 2023
1 parent 207fa11 commit 2e7ff1f
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 @@ -528,7 +528,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 @@ -1619,7 +1619,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 2e7ff1f

Please sign in to comment.