From: Hugo van Kemenade Date: Fri, 10 Feb 2023 22:26:41 +0000 (+0200) Subject: [3.11] Docs: Fix getstatus() -> getcode() typos (GH-101296) (#101805) X-Git-Tag: v3.11.3~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c485f0e39e2dd4afdb8608662ae3b15bcecf5e0e;p=thirdparty%2FPython%2Fcpython.git [3.11] Docs: Fix getstatus() -> getcode() typos (GH-101296) (#101805) --- diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst index 06f92510a5e4..bf0bf0f8c530 100644 --- a/Doc/library/http.client.rst +++ b/Doc/library/http.client.rst @@ -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`. diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index 59e1f2da828a..64cc9c388ec3 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -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`.