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

index 48582219695b41b2828a863fadde6b93bee5b948..ad3416135e307bcf3d8651aa0ca6bda5a80cc126 100644 (file)
@@ -532,7 +532,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`.