summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Huot <jonathan.huot@thomsonreuters.com>2019-02-21 10:01:29 +0100
committerJonathan Huot <jonathan.huot@thomsonreuters.com>2019-07-04 11:14:50 +0200
commit66d7c0035a8d33109ffaec9c8a620dd40255f99d (patch)
tree38b56e0804203ea029ba462aab092061d5f4c322
parentcb6af4b44da264613250cb3d99be420dbeb8e268 (diff)
downloadoauthlib-66d7c0035a8d33109ffaec9c8a620dd40255f99d.tar.gz
Add clarity to the deprecation warning
-rw-r--r--oauthlib/oauth2/rfc6749/tokens.py4
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):