summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2015-03-30 11:48:50 -0400
committerR David Murray <rdmurray@bitdance.com>2015-03-30 11:48:50 -0400
commitba6ea9b237572f301e20416dceb3573538b89a1e (patch)
treeb7382a770a07d6199fa6685b9f37b7d6d187d5d5
parentc156e51668f23ce2da783abcc19b3fa19fe8f90d (diff)
downloadcpython-git-ba6ea9b237572f301e20416dceb3573538b89a1e.tar.gz
#2211: Fix typo, address missed review comment.
-rw-r--r--Doc/library/http.cookies.rst6
-rw-r--r--Doc/whatsnew/3.5.rst4
2 files changed, 8 insertions, 2 deletions
diff --git a/Doc/library/http.cookies.rst b/Doc/library/http.cookies.rst
index 5c3fbc8df1..7c85d0954d 100644
--- a/Doc/library/http.cookies.rst
+++ b/Doc/library/http.cookies.rst
@@ -228,6 +228,12 @@ Morsel Objects
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:
Example
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index d795a11304..d33dfe8e70 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -679,8 +679,8 @@ Changes in the Python API
consistent: morsel comparison now takes the :attr:`~http.cookies.Morsel.key`
and :attr:`~http.cookies.Morsel.value` into account,
:meth:`~http.cookies.Morsel.copy` now results in a
- :class:`~http.cookies.Morsel` instance rather than a *dict*, and
- :meth:`~http.cookies.Morsel.update` will no raise an exception if any of the
+ :class:`~http.cookies.Morsel` instance rather than a :class:`dict`, and
+ :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
*LegalChars* parameter of :func:`~http.cookies.Morsel.set` is deprecated and
is now ignored. (:issue:`2211`)