From d1c722ca632bdb982571f0a3a0aa1290d89459f6 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Mon, 20 Jan 2014 19:28:47 -0500 Subject: [PATCH] Use STREAM_VERSION in userstream endpoint --- tweepy/streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 61b3021..a95c0b4 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -243,7 +243,7 @@ class Stream(object): self.parameters = {'delimited': 'length'} if self.running: raise TweepError('Stream object already connected!') - self.url = '/2/user.json?delimited=length' + self.url = '/%s/user.json?delimited=length' % STREAM_VERSION self.host='userstream.twitter.com' self._start(async) -- 2.25.1