Skip to content

Commit c957098

Browse files
gh-148849: Fix duplicate Morsel.js_output doc entry and indentation
1 parent 948a8f8 commit c957098

1 file changed

Lines changed: 7 additions & 15 deletions

File tree

Doc/library/http.cookies.rst

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -102,28 +102,14 @@ Cookie Objects
102102
(CRLF).
103103

104104

105-
.. method:: Morsel.js_output(attrs=None)
106-
107-
Return an embeddable JavaScript snippet, which, if run on a browser which
108-
supports JavaScript, will act the same as if the HTTP headers was sent.
109-
110-
The meaning for *attrs* is the same as in :meth:`output`.
111-
112-
.. deprecated-removed:: next 3.19
113-
This method generates a JavaScript snippet to set cookies in the browser,
114-
which is no longer considered a standard or recommended approach.
115-
Use :meth:`~http.cookies.Morsel.output` instead to generate HTTP
116-
headers.
117-
118-
119105
.. method:: BaseCookie.js_output(attrs=None)
120106

121107
Return an embeddable JavaScript snippet, which, if run on a browser which
122108
supports JavaScript, will act the same as if the HTTP headers was sent.
123109

124110
The meaning for *attrs* is the same as in :meth:`output`.
125111

126-
.. deprecated-removed:: next 3.19
112+
.. deprecated-removed:: 3.15 3.19
127113
This method generates a JavaScript snippet to set cookies in the browser,
128114
which is no longer considered a standard or recommended approach.
129115
Use :meth:`~http.cookies.BaseCookie.output` instead to generate HTTP
@@ -245,6 +231,12 @@ Morsel Objects
245231

246232
The meaning for *attrs* is the same as in :meth:`output`.
247233

234+
.. deprecated-removed:: 3.15 3.19
235+
This method generates a JavaScript snippet to set cookies in the browser,
236+
which is no longer considered a standard or recommended approach.
237+
Use :meth:`~http.cookies.Morsel.output` instead to generate HTTP
238+
headers.
239+
248240

249241
.. method:: Morsel.OutputString(attrs=None)
250242

0 commit comments

Comments
 (0)