summaryrefslogtreecommitdiffstats
path: root/Doc/library/http.cookies.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2015-03-30 15:48:50 (GMT)
committerR David Murray <rdmurray@bitdance.com>2015-03-30 15:48:50 (GMT)
commitba6ea9b237572f301e20416dceb3573538b89a1e (patch)
treeb7382a770a07d6199fa6685b9f37b7d6d187d5d5 /Doc/library/http.cookies.rst
parentc156e51668f23ce2da783abcc19b3fa19fe8f90d (diff)
downloadcpython-ba6ea9b237572f301e20416dceb3573538b89a1e.zip
cpython-ba6ea9b237572f301e20416dceb3573538b89a1e.tar.gz
cpython-ba6ea9b237572f301e20416dceb3573538b89a1e.tar.bz2
#2211: Fix typo, address missed review comment.
Diffstat (limited to 'Doc/library/http.cookies.rst')
-rw-r--r--Doc/library/http.cookies.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/http.cookies.rst b/Doc/library/http.cookies.rst
index 5c3fbc8..7c85d09 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