Skip to content

Commit

Permalink
Docs: Fix getstatus() -> getcode() typos (python#101296)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Feb 10, 2023
1 parent 2037ebf commit 61f2be0
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 @@ -532,7 +532,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 61f2be0

Please sign in to comment.