From 0781fde83c31cef45e0d7d8b2155a2624fb93b77 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Jan 2022 05:08:52 -0600 Subject: [PATCH] Rename OAuth2Bearer to OAuth2BearerHandler --- tweepy/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1