]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: Fix getstatus() -> getcode() typos (GH-101296)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 10 Feb 2023 22:26:34 +0000 (14:26 -0800)
committerGitHub <noreply@github.com>
Fri, 10 Feb 2023 22:26:34 +0000 (14:26 -0800)
(cherry picked from commit 61f2be08661949e2f6dfc94143436297e60d47de)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Doc/library/http.client.rst
Doc/library/urllib.request.rst

index dd7a0c459accafe4d4e7bf02429e19ce3da705a8..00d76cc2bda7b820b465fe15679bf05dd4fab550 100644 (file)
@@ -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`.
index 9c2c37a5c9a7faac80563d9db90aff4ddda42ad2..7659d802b3617e6207585d4ea1dd83e9781dc834 100644 (file)
@@ -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`.