From: wasw100 Date: Thu, 6 Jun 2013 11:15:09 +0000 (+0800) Subject: cookies.morsel_to_cookie(morsel) raise TypeError repaired. X-Git-Tag: 2.0~19^2~15^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=961790f95c7c06dc073d882acb28810a22d27b77;p=services%2Fpython-requests.git cookies.morsel_to_cookie(morsel) raise TypeError repaired. morsel_to_cookie(mosel) method raise TypeError: create_cookie() got unexpected keyword arguments: ['path_specified', 'domain_specified', 'port_specified', 'domain_initial_dot']. so we should remove these param from create_cookie(...) --- diff --git a/requests/cookies.py b/requests/cookies.py index d759d0a..6b2d4cd 100644 --- a/requests/cookies.py +++ b/requests/cookies.py @@ -359,12 +359,8 @@ def morsel_to_cookie(morsel): value=morsel.value, version=morsel['version'] or 0, port=None, - port_specified=False, domain=morsel['domain'], - domain_specified=bool(morsel['domain']), - domain_initial_dot=morsel['domain'].startswith('.'), path=morsel['path'], - path_specified=bool(morsel['path']), secure=bool(morsel['secure']), expires=morsel['max-age'] or morsel['expires'], discard=False,