Skip to content

Commit 61f2be0

Browse files
authored
Docs: Fix getstatus() -> getcode() typos (#101296)
1 parent 2037ebf commit 61f2be0

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
@@ -532,7 +532,7 @@ statement.
532532
.. deprecated:: 3.9
533533
Deprecated in favor of :attr:`~HTTPResponse.headers`.
534534

535-
.. method:: HTTPResponse.getstatus()
535+
.. method:: HTTPResponse.getcode()
536536

537537
.. deprecated:: 3.9
538538
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
@@ -1630,7 +1630,7 @@ The typical response object is a :class:`urllib.response.addinfourl` instance:
16301630
.. deprecated:: 3.9
16311631
Deprecated in favor of :attr:`~addinfourl.status`.
16321632

1633-
.. method:: getstatus()
1633+
.. method:: getcode()
16341634

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

0 commit comments

Comments
 (0)