Skip to content

Commit 2e7ff1f

Browse files
Docs: Fix getstatus() -> getcode() typos (GH-101296)
(cherry picked from commit 61f2be0) Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 207fa11 commit 2e7ff1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/library/http.client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ statement.
528528
.. deprecated:: 3.9
529529
Deprecated in favor of :attr:`~HTTPResponse.headers`.
530530

531-
.. method:: HTTPResponse.getstatus()
531+
.. method:: HTTPResponse.getcode()
532532

533533
.. deprecated:: 3.9
534534
Deprecated in favor of :attr:`~HTTPResponse.status`.

Doc/library/urllib.request.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,7 @@ The typical response object is a :class:`urllib.response.addinfourl` instance:
16191619
.. deprecated:: 3.9
16201620
Deprecated in favor of :attr:`~addinfourl.status`.
16211621

1622-
.. method:: getstatus()
1622+
.. method:: getcode()
16231623

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

0 commit comments

Comments
 (0)