summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)."""