From 179debf197d443c85d73d6e837aa990f9ff6acd2 Mon Sep 17 00:00:00 2001 From: Sam Kaufman Date: Mon, 16 Aug 2010 04:37:00 +0800 Subject: [PATCH] Now push lat/lon with only two decimals after the digit, like Twitter wants --- tweepy/streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 30f5faa..fa64c44 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -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) -- 2.25.1