Remove AuthHandler
authorHarmon <Harmon758@gmail.com>
Fri, 7 Jan 2022 12:19:54 +0000 (06:19 -0600)
committerHarmon <Harmon758@gmail.com>
Sat, 8 Jan 2022 00:19:27 +0000 (18:19 -0600)
tweepy/auth.py

index 9ae20560067cb7b08f861babd75d85deafe1371c..722e375be2eefd8d491365dd8b3dbe566a9b0b3d 100644 (file)
@@ -21,14 +21,7 @@ https://dev.twitter.com/discussions/21281"""
 log = logging.getLogger(__name__)
 
 
-class AuthHandler:
-
-    def apply_auth(self, url, method, headers, parameters):
-        """Apply authentication headers to request"""
-        raise NotImplementedError
-
-
-class OAuthHandler(AuthHandler):
+class OAuthHandler:
 
     def __init__(self, consumer_key, consumer_secret, callback=None):
         if not isinstance(consumer_key, (str, bytes)):
@@ -130,7 +123,7 @@ class OAuthHandler(AuthHandler):
             raise TweepyException(e)
 
 
-class OAuth2AppHandler(AuthHandler):
+class OAuth2AppHandler:
 
     def __init__(self, consumer_key, consumer_secret):
         self.consumer_key = consumer_key