]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Docs: Fix getstatus() -> getcode() typos (GH-101296) (#101805)
authorHugo van Kemenade <hugovk@users.noreply.github.com>
Fri, 10 Feb 2023 22:26:41 +0000 (00:26 +0200)
committerGitHub <noreply@github.com>
Fri, 10 Feb 2023 22:26:41 +0000 (00:26 +0200)
Doc/library/http.client.rst
Doc/library/urllib.request.rst

index 06f92510a5e4b31570e3bdf9965d2f8b5665dff9..bf0bf0f8c530a7f00de25c6ad5151c33545cd61b 100644 (file)
@@ -530,7 +530,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 59e1f2da828a833d95ab497a54dd5cc06e5f9202..64cc9c388ec30d044990e89c2f83a139c6d58bb8 100644 (file)
@@ -1630,7 +1630,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`.