From: Aaron Hill Date: Tue, 8 Apr 2014 19:23:12 +0000 (-0400) Subject: Remove 'count' parameter from endpoint that no longer support it X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8c76f6d8af66f6d6a5af4ab41a343dfb8d218d8d;p=tweepy.git Remove 'count' parameter from endpoint that no longer support it --- 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: