From 8c76f6d8af66f6d6a5af4ab41a343dfb8d218d8d Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Tue, 8 Apr 2014 15:23:12 -0400 Subject: [PATCH] Remove 'count' parameter from endpoint that no longer support it --- tweepy/streaming.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index b37d0ed..33f1169 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -278,17 +278,15 @@ class Stream(object): self.url = '/%s/statuses/retweet.json?delimited=length' % STREAM_VERSION self._start(async) - def sample(self, count=None, async=False): + def sample(self, async=False): self.parameters = {'delimited': 'length'} if self.running: raise TweepError('Stream object already connected!') self.url = '/%s/statuses/sample.json?delimited=length' % STREAM_VERSION - if count: - self.url += '&count=%s' % count self._start(async) def filter(self, follow=None, track=None, async=False, locations=None, - count=None, stall_warnings=False, languages=None, encoding='utf8'): + stall_warnings=False, languages=None, encoding='utf8'): self.parameters = {} self.headers['Content-type'] = "application/x-www-form-urlencoded" if self.running: @@ -303,8 +301,6 @@ class Stream(object): if locations and len(locations) > 0: assert len(locations) % 4 == 0 self.parameters['locations'] = ','.join(['%.4f' % l for l in locations]) - if count: - self.parameters['count'] = count if stall_warnings: self.parameters['stall_warnings'] = stall_warnings if languages: -- 2.25.1