From: Aaron Hill Date: Tue, 21 Jan 2014 00:28:47 +0000 (-0500) Subject: Use STREAM_VERSION in userstream endpoint X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d1c722ca632bdb982571f0a3a0aa1290d89459f6;p=tweepy.git Use STREAM_VERSION in userstream endpoint --- 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)