Skip to content

Commit

Permalink
Rename OAuth2Bearer to OAuth2BearerHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jan 8, 2022
1 parent 529d793 commit 0781fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tweepy/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def fetch_token(self, authorization_response):
)


class OAuth2Bearer(AuthBase):
class OAuth2BearerHandler(AuthBase):

def __init__(self, bearer_token):
self.bearer_token = bearer_token
Expand Down Expand Up @@ -199,6 +199,6 @@ def _get_oauth_url(self, endpoint):
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

0 comments on commit 0781fde

Please sign in to comment.