mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
backup
This commit is contained in:
@@ -7,19 +7,18 @@ oreos.core
|
||||
The creamy white center.
|
||||
"""
|
||||
|
||||
from .structures import MultiDict
|
||||
from .monkeys import SimpleCookie
|
||||
|
||||
|
||||
def dict_from_string(s):
|
||||
"""Returns a MultiDict with Cookies."""
|
||||
|
||||
cookies = MultiDict()
|
||||
cookies = dict()
|
||||
|
||||
c = SimpleCookie()
|
||||
c.load(s)
|
||||
|
||||
for k,v in c.items():
|
||||
cookies.add(k, v.value)
|
||||
cookies.update({k: v.value})
|
||||
|
||||
return cookies
|
||||
Reference in New Issue
Block a user