Skip to content

Commit

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

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
  • Loading branch information
hugovk authored and miss-islington committed Feb 10, 2023
1 parent 6d8ef96 commit 2f1dba6
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 2f1dba6

Please sign in to comment.