Use STREAM_VERSION in userstream endpoint
authorAaron Hill <aa1ronham@gmail.com>
Tue, 21 Jan 2014 00:28:47 +0000 (19:28 -0500)
committerAaron Hill <aa1ronham@gmail.com>
Tue, 21 Jan 2014 00:28:47 +0000 (19:28 -0500)
tweepy/streaming.py

index 61b3021c843a2275a30ea09844d6b403f4d69fd8..a95c0b4c47e373b03d6cbb3e327e711e6bf4b2db 100644 (file)
@@ -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)