Skip to content
Myr

Update: @property decorator instead of __getattr__

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by yegle · committed by yegle · parent 992d118 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:requests/cookies.py+3 added-3 removed
65 unmodified lines
6667 def get_new_headers(self):68 return self._new_headers6970 def __getattr__(self, name):71 if name == 'unverifiable':72 return self.is_unverifiable()70 @property71 def unverifiable(self):72 return self.is_unverifiable()737475class MockResponse(object):76 """Wraps a `httplib.HTTPMessage` to mimic a `urllib.addinfourl`.
301 unmodified lines