From 16763e2ff6913653077512f069864ad720d44ad7 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Jan 2022 05:24:03 -0600 Subject: [PATCH] Rename OAuth2Handler to OAuth2UserHandler --- tweepy/__init__.py | 2 +- tweepy/auth.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/__init__.py b/tweepy/__init__.py index 69069d1..2740494 100644 --- a/tweepy/__init__.py +++ b/tweepy/__init__.py @@ -12,7 +12,7 @@ __license__ = 'MIT' from tweepy.api import API from tweepy.auth import ( AppAuthHandler, OAuthHandler, OAuth2AppHandler, OAuth2BearerHandler, - OAuth2Handler + OAuth2UserHandler ) from tweepy.cache import Cache, FileCache, MemoryCache from tweepy.client import Client, Response diff --git a/tweepy/auth.py b/tweepy/auth.py index 472004f..040a7a0 100644 --- a/tweepy/auth.py +++ b/tweepy/auth.py @@ -133,7 +133,7 @@ class OAuthHandler(AuthHandler): raise TweepyException(e) -class OAuth2Handler(OAuth2Session): +class OAuth2UserHandler(OAuth2Session): def __init__(self, *, client_id, redirect_uri, scope, client_secret=None): super().__init__(client_id, redirect_uri=redirect_uri, scope=scope) -- 2.25.1