Skip to content

Commit

Permalink
Rename OAuthHandler to OAuth1UserHandler
Browse files Browse the repository at this point in the history
Keep OAuthHandler as deprecated alias
  • Loading branch information
Harmon758 committed Jan 8, 2022
1 parent 99f3583 commit fb6eb7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tweepy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

from tweepy.api import API
from tweepy.auth import (
AppAuthHandler, OAuthHandler, OAuth2AppHandler, OAuth2BearerHandler,
OAuth2UserHandler
AppAuthHandler, OAuthHandler, OAuth1UserHandler, OAuth2AppHandler,
OAuth2BearerHandler, OAuth2UserHandler
)
from tweepy.cache import Cache, FileCache, MemoryCache
from tweepy.client import Client, Response
Expand Down
4 changes: 3 additions & 1 deletion tweepy/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
log = logging.getLogger(__name__)


class OAuthHandler:
class OAuth1UserHandler:

def __init__(self, consumer_key, consumer_secret, access_token=None,
access_token_secret=None, callback=None):
Expand Down Expand Up @@ -101,6 +101,8 @@ def get_access_token(self, verifier=None):
except Exception as e:
raise TweepyException(e)

OAuthHandler = OAuth1UserHandler


class OAuth2AppHandler:

Expand Down

0 comments on commit fb6eb7d

Please sign in to comment.