[Python-checkins] Docs: Fix getstatus() -> getcode() typos (GH-101296)

miss-islington webhook-mailer at python.org
Fri Feb 10 17:26:42 EST 2023


https://github.com/python/cpython/commit/2e7ff1fcf67dcbcf872c699d95cc8b01771c0698
commit: 2e7ff1fcf67dcbcf872c699d95cc8b01771c0698
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2023-02-10T14:26:34-08:00
summary:

Docs: Fix getstatus() -> getcode() typos (GH-101296)

(cherry picked from commit 61f2be08661949e2f6dfc94143436297e60d47de)

Co-authored-by: Hugo van Kemenade <hugovk at users.noreply.github.com>

files:
M Doc/library/http.client.rst
M Doc/library/urllib.request.rst

diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst
index dd7a0c459acc..00d76cc2bda7 100644
--- a/Doc/library/http.client.rst
+++ b/Doc/library/http.client.rst
@@ -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`.
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 9c2c37a5c9a7..7659d802b361 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -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`.



More information about the Python-checkins mailing list