Remove delimited=length from sample stream
authorAaron Hill <aa1ronham@gmail.com>
Tue, 1 Jul 2014 11:51:28 +0000 (07:51 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Tue, 1 Jul 2014 11:55:26 +0000 (07:55 -0400)
This causes Twitter to reject the request, for some reason.

tweepy/streaming.py

index b22299b83e3467cd3dc33c90f846947a505437fe..4d6c4fa2267a9c458a27293c50bfd2ca99664ce7 100644 (file)
@@ -281,7 +281,6 @@ class Stream(object):
         self._start(async)
 
     def sample(self, async=False):
-        self.session.params = {'delimited': 'length'}
         if self.running:
             raise TweepError('Stream object already connected!')
         self.url = '/%s/statuses/sample.json?delimited=length' % STREAM_VERSION