Skip to content

Commit 076adf3

Browse files
author
Shakeel Mohamed
committed
Revise docstrings for cookie auth helper methods
1 parent f3ac25e commit 076adf3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

splunklib/binding.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ def parse_cookies(cookie_str, dictionary):
7878
# Now the following is True
7979
dictionary['my'] == 'value'
8080
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``
8585
"""
8686
parsed_cookie = Cookie.SimpleCookie(cookie_str)
8787
for cookie in parsed_cookie.values():
@@ -99,7 +99,8 @@ def make_cookie_header(cookies):
9999
# Now the following is True
100100
header == "key=value; key_2=value_2"
101101
102-
:param cookies:
102+
:param cookies: A list of 2-tuples of cookie key-value pairs.
103+
:type cookies: ``list`` of 2-tuples
103104
:return: ``str` An HTTP header cookie string.
104105
:rtype: ``str``
105106
"""

0 commit comments

Comments
 (0)