Permalink
Browse files

Update: @property decorator instead of __getattr__

  • Loading branch information...
1 parent 992d118 commit 170c46c06bd9b6f7233c95f998642ff365d47a0b @yegle yegle committed Oct 1, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 requests/cookies.py
View
@@ -67,9 +67,9 @@ def add_unredirected_header(self, name, value):
def get_new_headers(self):
return self._new_headers
- def __getattr__(self, name):
- if name == 'unverifiable':
- return self.is_unverifiable()
+ @property
+ def unverifiable(self):
+ return self.is_unverifiable()
class MockResponse(object):

0 comments on commit 170c46c

Please sign in to comment.