diff options
author | Omer Katz <omer.drow@gmail.com> | 2016-04-10 11:21:22 +0300 |
---|---|---|
committer | Omer Katz <omer.drow@gmail.com> | 2016-04-10 11:21:22 +0300 |
commit | d2e39378991bf762ec4ba6c33da011bbca395851 (patch) | |
tree | 461d5cdb5ff739007c916afcd2e502e313f3525e | |
parent | d88c94d5484cc38e92e2e41c548915b4c5df1277 (diff) | |
download | oauthlib-d2e39378991bf762ec4ba6c33da011bbca395851.tar.gz |
Use slots for token bearer.
-rw-r--r-- | oauthlib/oauth2/rfc6749/tokens.py | 4 | ||||
-rw-r--r-- | requirements.txt | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/oauthlib/oauth2/rfc6749/tokens.py b/oauthlib/oauth2/rfc6749/tokens.py index c4d3671..53f42ca 100644 --- a/oauthlib/oauth2/rfc6749/tokens.py +++ b/oauthlib/oauth2/rfc6749/tokens.py @@ -232,6 +232,10 @@ class TokenBase(object): class BearerToken(TokenBase): + __slots__ = ( + 'request_validator', 'token_generator', + 'refresh_token_generator', 'expires_in' + ) def __init__(self, request_validator=None, token_generator=None, expires_in=None, refresh_token_generator=None): diff --git a/requirements.txt b/requirements.txt index 0dfa994..e4980c7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ pyjwt==1.0.0 blinker==1.3 -cryptography==0.8.1 +cryptography>=0.8.1 |