Skip to content

Commit

Permalink
Remove 'key' keyword argument from set_cookie
Browse files Browse the repository at this point in the history
It has been removed for a while
  • Loading branch information
digitalresistor committed Apr 11, 2018
1 parent a1a120f commit 1c91f51
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/webob/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,9 +947,9 @@ def _content_type_params__del(self):
# set_cookie, unset_cookie, delete_cookie, merge_cookies
#

def set_cookie(self, name=None, value='', max_age=None,
def set_cookie(self, name, value='', max_age=None,
path='/', domain=None, secure=False, httponly=False,
comment=None, expires=None, overwrite=False, key=None,
comment=None, expires=None, overwrite=False,
samesite=None):
"""
Set (add) a cookie for the response.
Expand Down Expand Up @@ -1044,9 +1044,6 @@ def set_cookie(self, name=None, value='', max_age=None,
warn_deprecation('Argument "expires" will be removed in a future '
'version of WebOb, please use "max_age".', 1.10, 1)

if name is None:
raise TypeError('set_cookie() takes at least 1 argument')

if overwrite:
self.unset_cookie(name, strict=False)

Expand Down

0 comments on commit 1c91f51

Please sign in to comment.