From 02dedfbab48055a2ab839bbc47ecdc09da30099f Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 23 Jan 2021 11:23:31 -0600 Subject: [PATCH] Remove STREAM_VERSION --- tweepy/streaming.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 530ffe0..ba8b508 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -19,8 +19,6 @@ from tweepy.api import API from tweepy.error import TweepError from tweepy.models import Status -STREAM_VERSION = '1.1' - log = logging.getLogger(__name__) @@ -153,7 +151,7 @@ class Stream: if self.session is None: self.session = requests.Session() - url = f"https://stream.twitter.com/{STREAM_VERSION}/{endpoint}.json" + url = f"https://stream.twitter.com/1.1/{endpoint}.json" auth = OAuth1(self.consumer_key, self.consumer_secret, self.access_token, self.access_token_secret) -- 2.25.1