From d600c4cf6ad2755aa0a959ee57c12d86cddce973 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Jan 2022 06:19:54 -0600 Subject: [PATCH] Remove AuthHandler --- tweepy/auth.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tweepy/auth.py b/tweepy/auth.py index 9ae2056..722e375 100644 --- a/tweepy/auth.py +++ b/tweepy/auth.py @@ -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 -- 2.25.1