Skip to content

Commit

Permalink
backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Reitz committed Nov 19, 2011
1 parent 1da54de commit e171551
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions requests/packages/oreos/core.py
Expand Up @@ -7,19 +7,18 @@
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

0 comments on commit e171551

Please sign in to comment.