From: Harmon Date: Fri, 7 Jan 2022 11:08:52 +0000 (-0600) Subject: Rename OAuth2Bearer to OAuth2BearerHandler X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0781fde83c31cef45e0d7d8b2155a2624fb93b77;p=tweepy.git Rename OAuth2Bearer to OAuth2BearerHandler --- diff --git a/tweepy/auth.py b/tweepy/auth.py index d8b30ac..7ac26ac 100644 --- a/tweepy/auth.py +++ b/tweepy/auth.py @@ -163,7 +163,7 @@ class OAuth2Handler(OAuth2Session): ) -class OAuth2Bearer(AuthBase): +class OAuth2BearerHandler(AuthBase): def __init__(self, bearer_token): self.bearer_token = bearer_token @@ -199,6 +199,6 @@ class OAuth2AppHandler(AuthHandler): return 'https://' + self.OAUTH_HOST + self.OAUTH_ROOT + endpoint def apply_auth(self): - return OAuth2Bearer(self._bearer_token) + return OAuth2BearerHandler(self._bearer_token) AppAuthHandler = OAuth2AppHandler