Remove 'count' parameter from endpoint that no longer support it
authorAaron Hill <aa1ronham@gmail.com>
Tue, 8 Apr 2014 19:23:12 +0000 (15:23 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Tue, 8 Apr 2014 19:23:12 +0000 (15:23 -0400)
tweepy/streaming.py

index b37d0edf3f510231087fb807ed270077b87ab4e4..33f1169339e9b3cb9868456f28120f78fed8bffe 100644 (file)
@@ -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: