Rename OAuth2Bearer to OAuth2BearerHandler
authorHarmon <Harmon758@gmail.com>
Fri, 7 Jan 2022 11:08:52 +0000 (05:08 -0600)
committerHarmon <Harmon758@gmail.com>
Sat, 8 Jan 2022 00:19:27 +0000 (18:19 -0600)
tweepy/auth.py

index d8b30ac48f9f6f374fbdae1519f61559926a761e..7ac26ac78109b7d3a1ea93d643a80dc400e5253c 100644 (file)
@@ -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