Remove STREAM_VERSION
authorHarmon <Harmon758@gmail.com>
Sat, 23 Jan 2021 17:23:31 +0000 (11:23 -0600)
committerHarmon <Harmon758@gmail.com>
Sat, 23 Jan 2021 17:23:31 +0000 (11:23 -0600)
tweepy/streaming.py

index 530ffe0b28790f9037aa4ec330e51165bc20909f..ba8b508ffa3bd8c22bcc6f5b603c0948c968e0d9 100644 (file)
@@ -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)