From 916f09e8450f0e3aee4f659222cbb2bddf839745 Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 30 Dec 2020 00:00:12 -0600 Subject: [PATCH] Remove unnecessary ASCII encoding of credentials in OAuthHandler --- tweepy/auth.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tweepy/auth.py b/tweepy/auth.py index f27f5da..1d138bd 100644 --- a/tweepy/auth.py +++ b/tweepy/auth.py @@ -36,12 +36,6 @@ class OAuthHandler(AuthHandler): OAUTH_ROOT = '/oauth/' def __init__(self, consumer_key, consumer_secret, callback=None): - if isinstance(consumer_key, str): - consumer_key = consumer_key.encode('ascii') - - if isinstance(consumer_secret, str): - consumer_secret = consumer_secret.encode('ascii') - self.consumer_key = consumer_key self.consumer_secret = consumer_secret self.access_token = None -- 2.25.1