update requests to v2.9.1-dev

This commit is contained in:
Alan Hamlett 2016-03-06 12:34:13 -08:00
parent 9981601a0a
commit b6bd75a0e8
5 changed files with 37 additions and 11 deletions

View file

@ -277,6 +277,12 @@ class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):
dictionary[cookie.name] = cookie.value
return dictionary
def __contains__(self, name):
try:
return super(RequestsCookieJar, self).__contains__(name)
except CookieConflictError:
return True
def __getitem__(self, name):
"""Dict-like __getitem__() for compatibility with client code. Throws
exception if there are more than one cookie with name. In that case,