Rename OAuth2Handler to OAuth2UserHandler
authorHarmon <Harmon758@gmail.com>
Fri, 7 Jan 2022 11:24:03 +0000 (05:24 -0600)
committerHarmon <Harmon758@gmail.com>
Sat, 8 Jan 2022 00:19:27 +0000 (18:19 -0600)
tweepy/__init__.py
tweepy/auth.py

index 69069d15dffc266e8be735cc296b634f58716958..27404941c20fe887d3bbdc041e69ea82fc482fac 100644 (file)
@@ -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
index 472004fae0f2cfdb17c9fd9995636ad99a8cb717..040a7a0e678e676bf75b6e8d421a83094fc59c21 100644 (file)
@@ -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)