Skip to content

Commit

Permalink
Update: @Property decorator instead of __getattr__
Browse files Browse the repository at this point in the history
  • Loading branch information
yegle committed Oct 1, 2012
1 parent 992d118 commit 170c46c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions requests/cookies.py
Expand Up @@ -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):
Expand Down

0 comments on commit 170c46c

Please sign in to comment.