projects
/
platform
/
upstream
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb6a6b1
)
Python 3.3 compatible update
author
yegle
<me@yegle.net>
Sat, 29 Sep 2012 22:28:53 +0000
(18:28 -0400)
committer
Radu Voicilas
<radu.voicilas@gmail.com>
Mon, 8 Oct 2012 21:42:48 +0000
(
00:42
+0300)
httplib.cookiejar.DefaultCookiePolicy changed its implementation of
set_ok_verifiability.
requests/cookies.py
patch
|
blob
|
history
diff --git
a/requests/cookies.py
b/requests/cookies.py
index bd2d66546c8b0507564dc664745947371018a39f..83f6bb60ab91db71d72008dba31bc8c41f436d42 100644
(file)
--- 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`.