diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-13 09:23:15 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-13 09:23:15 +0200 |
commit | 86f7fe2081eae28a74be681453a59c243f9632cf (patch) | |
tree | a3df90dc9b2700b912010efb85a43a19de5c8a37 /Doc | |
parent | 1e97cd7fb5d5776bf8bbf76bb4586d0b86833d45 (diff) | |
download | cpython-86f7fe2081eae28a74be681453a59c243f9632cf.tar.gz |
Issue #29192: Removed deprecated features in the http.cookies module.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/http.cookies.rst | 18 | ||||
-rw-r--r-- | Doc/whatsnew/3.7.rst | 7 |
2 files changed, 12 insertions, 13 deletions
diff --git a/Doc/library/http.cookies.rst b/Doc/library/http.cookies.rst index 4b45d4bc38..fb8317ad59 100644 --- a/Doc/library/http.cookies.rst +++ b/Doc/library/http.cookies.rst @@ -148,39 +148,31 @@ Morsel Objects :meth:`~Morsel.__eq__` now takes :attr:`~Morsel.key` and :attr:`~Morsel.value` into account. + .. versionchanged:: 3.7 + Attributes :attr:`~Morsel.key`, :attr:`~Morsel.value` and + :attr:`~Morsel.coded_value` are read-only. Use :meth:`~Morsel.set` for + setting them. + .. attribute:: Morsel.value The value of the cookie. - .. deprecated:: 3.5 - assigning to ``value``; use :meth:`~Morsel.set` instead. - .. attribute:: Morsel.coded_value The encoded value of the cookie --- this is what should be sent. - .. deprecated:: 3.5 - assigning to ``coded_value``; use :meth:`~Morsel.set` instead. - .. attribute:: Morsel.key The name of the cookie. - .. deprecated:: 3.5 - assigning to ``key``; use :meth:`~Morsel.set` instead. - .. method:: Morsel.set(key, value, coded_value) Set the *key*, *value* and *coded_value* attributes. - .. deprecated:: 3.5 - The undocumented *LegalChars* parameter is ignored and will be removed in - a future version. - .. method:: Morsel.isReservedKey(K) diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index c4814e2706..411f9167e7 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -153,3 +153,10 @@ Changes in the Python API * A format string argument for :meth:`string.Formatter.format` is now :ref:`positional-only <positional-only_parameter>`. (Contributed by Serhiy Storchaka in :issue:`29193`.) + +* Attributes :attr:`~http.cookies.Morsel.key`, + :attr:`~http.cookies.Morsel.value` and + :attr:`~http.cookies.Morsel.coded_value` of class + :class:`http.cookies.Morsel` are now read-only. + Use the :meth:`~http.cookies.Morsel.set` method for setting them. + (Contributed by Serhiy Storchaka in :issue:`29192`.) |