diff options
author | Jonathan Huot <jonathan.huot@thomsonreuters.com> | 2019-02-21 10:01:29 +0100 |
---|---|---|
committer | Jonathan Huot <jonathan.huot@thomsonreuters.com> | 2019-07-04 11:14:50 +0200 |
commit | 66d7c0035a8d33109ffaec9c8a620dd40255f99d (patch) | |
tree | 38b56e0804203ea029ba462aab092061d5f4c322 | |
parent | cb6af4b44da264613250cb3d99be420dbeb8e268 (diff) | |
download | oauthlib-66d7c0035a8d33109ffaec9c8a620dd40255f99d.tar.gz |
Add clarity to the deprecation warning
-rw-r--r-- | oauthlib/oauth2/rfc6749/tokens.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oauthlib/oauth2/rfc6749/tokens.py b/oauthlib/oauth2/rfc6749/tokens.py index 44a9a97..7973923 100644 --- a/oauthlib/oauth2/rfc6749/tokens.py +++ b/oauthlib/oauth2/rfc6749/tokens.py @@ -306,8 +306,8 @@ class BearerToken(TokenBase): :param refresh_token: """ if "save_token" in kwargs: - warnings.warn("`save_token` has been deprecated, it was not used internally." - "If you do, use `request_validator.save_token()` instead.", + warnings.warn("`save_token` has been deprecated, it was not called internally." + "If you do, call `request_validator.save_token()` instead.", DeprecationWarning) if callable(self.expires_in): |