mirror of
https://github.com/kennethreitz/requests3.git
synced 2026-06-05 23:10:16 +00:00
24 lines
330 B
Python
24 lines
330 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
oreos.core
|
|
~~~~~~~~~~
|
|
|
|
The creamy white center.
|
|
"""
|
|
|
|
from .monkeys import SimpleCookie
|
|
|
|
|
|
def dict_from_string(s):
|
|
"""Returns a MultiDict with Cookies."""
|
|
|
|
cookies = dict()
|
|
|
|
c = SimpleCookie()
|
|
c.load(s)
|
|
|
|
for k,v in c.items():
|
|
cookies.update({k: v.value})
|
|
|
|
return cookies |