From: Hugo van Kemenade Date: Fri, 10 Feb 2023 18:46:12 +0000 (+0200) Subject: Docs: Fix getstatus() -> getcode() typos (#101296) X-Git-Tag: v3.12.0a6~186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61f2be08661949e2f6dfc94143436297e60d47de;p=thirdparty%2FPython%2Fcpython.git Docs: Fix getstatus() -> getcode() typos (#101296) --- diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst index 48582219695b..ad3416135e30 100644 --- a/Doc/library/http.client.rst +++ b/Doc/library/http.client.rst @@ -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`. 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`.