From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 25 Nov 2022 23:26:50 +0000 (-0800) Subject: [3.11] Fix misspelling in docs for http.HTTPMethod (GH-99376) (#99451) X-Git-Tag: v3.11.1~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00755196e3919ea3b9d7ee50b8a60958c440950f;p=thirdparty%2FPython%2Fcpython.git [3.11] Fix misspelling in docs for http.HTTPMethod (GH-99376) (#99451) Fix misspelling in docs for http.HTTPMethod (GH-99376) (cherry picked from commit f0d12ca0e0e31b678448b6192ebaf9720228d4fa) Co-authored-by: Matt Harasymczuk Co-authored-by: Jelle Zijlstra --- diff --git a/Doc/library/http.rst b/Doc/library/http.rst index 5895a41d849b..bd9dcf68f2fa 100644 --- a/Doc/library/http.rst +++ b/Doc/library/http.rst @@ -146,16 +146,25 @@ equal to the constant name (i.e. ``http.HTTPStatus.OK`` is also available as Usage:: >>> from http import HTTPMethod - >>> HTTMethod.GET - HTTMethod.GET - >>> HTTMethod.GET == 'GET' + >>> + >>> HTTPMethod.GET + + >>> HTTPMethod.GET == 'GET' True - >>> HTTMethod.GET.value + >>> HTTPMethod.GET.value 'GET' - >>> HTTMethod.GET.description - 'Transfer a current representation of the target resource.' + >>> HTTPMethod.GET.description + 'Retrieve the target.' >>> list(HTTPMethod) - [HTTPMethod.GET, HTTPMethod.HEAD, ...] + [, + , + , + , + , + , + , + , + ] .. _http-methods: