From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 10 Feb 2023 22:26:34 +0000 (-0800) Subject: Docs: Fix getstatus() -> getcode() typos (GH-101296) X-Git-Tag: v3.10.11~110 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e7ff1fcf67dcbcf872c699d95cc8b01771c0698;p=thirdparty%2FPython%2Fcpython.git Docs: Fix getstatus() -> getcode() typos (GH-101296) (cherry picked from commit 61f2be08661949e2f6dfc94143436297e60d47de) Co-authored-by: Hugo van Kemenade --- diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst index dd7a0c459acc..00d76cc2bda7 100644 --- a/Doc/library/http.client.rst +++ b/Doc/library/http.client.rst @@ -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`. diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index 9c2c37a5c9a7..7659d802b361 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -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`.