summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjonathan vanasco <jonathan@2xlp.com>2018-04-11 17:39:03 -0400
committerjonathan vanasco <jonathan@2xlp.com>2018-04-11 17:39:03 -0400
commit41662fd21a3f4f41684a92c904750543987b87da (patch)
treefcd7110728106e1cec2788b6d4f5b9059b0b2ccf
parentfab055d611f44c5196d1b5acda3fce712fef62dc (diff)
downloadpyramid-41662fd21a3f4f41684a92c904750543987b87da.tar.gz
pyramid-41662fd21a3f4f41684a92c904750543987b87da.tar.bz2
pyramid-41662fd21a3f4f41684a92c904750543987b87da.zip
updated `delete_cookie` docs with `name` instead of `key`
-rw-r--r--docs/narr/webob.rst2
-rw-r--r--pyramid/interfaces.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/webob.rst b/docs/narr/webob.rst
index 5fd19e417..4efe783b0 100644
--- a/docs/narr/webob.rst
+++ b/docs/narr/webob.rst
@@ -412,7 +412,7 @@ Here are some highlights:
(you may also use a timedelta object). The ``Expires`` key will also be
set based on the value of ``max_age``.
-``response.delete_cookie(key, path='/', domain=None)``
+``response.delete_cookie(name, path='/', domain=None)``
Delete a cookie from the client. This sets ``max_age`` to 0 and the cookie
value to ``''``.
diff --git a/pyramid/interfaces.py b/pyramid/interfaces.py
index 5aa3fc20b..765a63ada 100644
--- a/pyramid/interfaces.py
+++ b/pyramid/interfaces.py
@@ -259,7 +259,7 @@ class IResponse(Interface):
""" Get/set the unicode value of the body (using the charset of
the Content-Type)""")
- def unset_cookie(key, strict=True):
+ def unset_cookie(name, strict=True):
""" Unset a cookie with the given name (remove it from the
response)."""