Docs: Fix getstatus() -> getcode() typos (GH-101296)
(cherry picked from commit 61f2be08661949e2f6dfc94143436297e60d47de)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst
index dd7a0c4..00d76cc 100644
--- a/Doc/library/http.client.rst
+++ b/Doc/library/http.client.rst
@@ -528,7 +528,7 @@
.. 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`.
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 9c2c37a..7659d80 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -1619,7 +1619,7 @@
.. deprecated:: 3.9
Deprecated in favor of :attr:`~addinfourl.status`.
- .. method:: getstatus()
+ .. method:: getcode()
.. deprecated:: 3.9
Deprecated in favor of :attr:`~addinfourl.status`.