]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Fix misspelling in docs for http.HTTPMethod (GH-99376) (#99451)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 25 Nov 2022 23:26:50 +0000 (15:26 -0800)
committerGitHub <noreply@github.com>
Fri, 25 Nov 2022 23:26:50 +0000 (18:26 -0500)
Fix misspelling in docs for http.HTTPMethod (GH-99376)
(cherry picked from commit f0d12ca0e0e31b678448b6192ebaf9720228d4fa)

Co-authored-by: Matt Harasymczuk <github.com@haras.pl>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/library/http.rst

index 5895a41d849bd19ff1aaa9333dc33f1b1004b3ec..bd9dcf68f2fa08848b260478fd6a9b0e5590682c 100644 (file)
@@ -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>
+      >>> 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, ...]
+      [<HTTPMethod.CONNECT>,
+       <HTTPMethod.DELETE>,
+       <HTTPMethod.GET>,
+       <HTTPMethod.HEAD>,
+       <HTTPMethod.OPTIONS>,
+       <HTTPMethod.PATCH>,
+       <HTTPMethod.POST>,
+       <HTTPMethod.PUT>,
+       <HTTPMethod.TRACE>]
 
 .. _http-methods: