Now push lat/lon with only two decimals after the digit, like Twitter wants
authorSam Kaufman <emrysk@gmail.com>
Sun, 15 Aug 2010 20:37:00 +0000 (04:37 +0800)
committerJoshua Roesslein <jroesslein@gmail.com>
Sat, 18 Sep 2010 03:16:27 +0000 (11:16 +0800)
tweepy/streaming.py

index 30f5faa1c348472085d6bf25db72c2d3a444b4f7..fa64c44fb8f585677f3bbf4b43f189e6c31db533 100644 (file)
@@ -192,7 +192,7 @@ class Stream(object):
             params['track'] = ','.join(map(str, track))
         if locations and len(locations) > 0:
             assert len(locations) % 4 == 0
-            params['locations'] = ','.join(map(str, locations))
+            params['locations'] = ','.join(['%.2f' % l for l in locations])
         self.body = urllib.urlencode(params)
         self._start(async)