From: yegle Date: Sat, 29 Sep 2012 22:28:53 +0000 (-0400) Subject: Python 3.3 compatible update X-Git-Tag: v0.14.2~8^2~1^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e656222188475369ec3493cdeb37d398a7e7e1c5;p=services%2Fpython-requests.git Python 3.3 compatible update httplib.cookiejar.DefaultCookiePolicy changed its implementation of set_ok_verifiability. --- diff --git a/requests/cookies.py b/requests/cookies.py index bd2d665..83f6bb6 100644 --- a/requests/cookies.py +++ b/requests/cookies.py @@ -67,6 +67,10 @@ class MockRequest(object): def get_new_headers(self): return self._new_headers + def __getattr__(self, name): + if name == 'unverifiable': + return self.is_unverifiable() + class MockResponse(object): """Wraps a `httplib.HTTPMessage` to mimic a `urllib.addinfourl`.