Commit 0afaeb97 authored by R David Murray's avatar R David Murray

#2211: Fix typo, address missed review comment.

parent e41c86cd
...@@ -228,6 +228,12 @@ Morsel Objects ...@@ -228,6 +228,12 @@ Morsel Objects
return a Morsel object instead of a dict. return a Morsel object instead of a dict.
.. method:: Morsel.setdefault(key, value=None)
Raise an error if key is not a valid :rfc:`2109` attribute, otherwise
behave the same as :meth:`dict.setdefault`.
.. _cookie-example: .. _cookie-example:
Example Example
......
...@@ -679,8 +679,8 @@ Changes in the Python API ...@@ -679,8 +679,8 @@ Changes in the Python API
consistent: morsel comparison now takes the :attr:`~http.cookies.Morsel.key` consistent: morsel comparison now takes the :attr:`~http.cookies.Morsel.key`
and :attr:`~http.cookies.Morsel.value` into account, and :attr:`~http.cookies.Morsel.value` into account,
:meth:`~http.cookies.Morsel.copy` now results in a :meth:`~http.cookies.Morsel.copy` now results in a
:class:`~http.cookies.Morsel` instance rather than a *dict*, and :class:`~http.cookies.Morsel` instance rather than a :class:`dict`, and
:meth:`~http.cookies.Morsel.update` will no raise an exception if any of the :meth:`~http.cookies.Morsel.update` will now raise an exception if any of the
keys in the update dictionary are invalid. In addition, the undocumented keys in the update dictionary are invalid. In addition, the undocumented
*LegalChars* parameter of :func:`~http.cookies.Morsel.set` is deprecated and *LegalChars* parameter of :func:`~http.cookies.Morsel.set` is deprecated and
is now ignored. (:issue:`2211`) is now ignored. (:issue:`2211`)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment