File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,10 @@ def parse_cookies(cookie_str, dictionary):
78
78
# Now the following is True
79
79
dictionary['my'] == 'value'
80
80
81
- :param cookie_str: A string containing "key=value" pairs from an HTTP "Set-Cookie" header
82
- :type msg : ``str``
83
- :param dictionary: A dictionary to update with any found key-value pairs
84
- :type msg : ``dict``
81
+ :param cookie_str: A string containing "key=value" pairs from an HTTP "Set-Cookie" header.
82
+ :type cookie_str : ``str``
83
+ :param dictionary: A dictionary to update with any found key-value pairs.
84
+ :type dictionary : ``dict``
85
85
"""
86
86
parsed_cookie = Cookie .SimpleCookie (cookie_str )
87
87
for cookie in parsed_cookie .values ():
@@ -99,7 +99,8 @@ def make_cookie_header(cookies):
99
99
# Now the following is True
100
100
header == "key=value; key_2=value_2"
101
101
102
- :param cookies:
102
+ :param cookies: A list of 2-tuples of cookie key-value pairs.
103
+ :type cookies: ``list`` of 2-tuples
103
104
:return: ``str` An HTTP header cookie string.
104
105
:rtype: ``str``
105
106
"""
You can’t perform that action at this time.
0 commit comments