This commit is contained in:
Kenneth Reitz
2011-11-19 15:42:36 -05:00
parent 1da54de5dc
commit e17155151b
+2 -3
View File
@@ -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