From b703d30475265a5af011beef5d5e66de8c229192 Mon Sep 17 00:00:00 2001 From: Matt Harasymczuk Date: Fri, 11 Nov 2022 14:52:24 +0100 Subject: [PATCH 1/2] Fix misspell in docs http.HTTPMethod (introduced in 3.11) --- Doc/library/http.rst | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/Doc/library/http.rst b/Doc/library/http.rst index 9d002dc33ccb8d..5b3c4d3b431b69 100644 --- a/Doc/library/http.rst +++ b/Doc/library/http.rst @@ -171,16 +171,25 @@ Property Indicates that Details 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 + >>> HTTPMethod.GET.description 'Transfer a current representation of the target resource.' >>> list(HTTPMethod) - [HTTPMethod.GET, HTTPMethod.HEAD, ...] + [, + , + , + , + , + , + , + , + ] .. _http-methods: From e50c1a10bfc6c512b9108032a83758eb02431ed5 Mon Sep 17 00:00:00 2001 From: Matt Harasymczuk Date: Sun, 13 Nov 2022 20:28:45 +0100 Subject: [PATCH 2/2] Update Doc/library/http.rst Co-authored-by: Jelle Zijlstra --- Doc/library/http.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/http.rst b/Doc/library/http.rst index 5b3c4d3b431b69..5e1912716e5319 100644 --- a/Doc/library/http.rst +++ b/Doc/library/http.rst @@ -179,7 +179,7 @@ Property Indicates that Details >>> HTTPMethod.GET.value 'GET' >>> HTTPMethod.GET.description - 'Transfer a current representation of the target resource.' + 'Retrieve the target.' >>> list(HTTPMethod) [, ,