From: Sam Kaufman Date: Sun, 15 Aug 2010 20:37:00 +0000 (+0800) Subject: Now push lat/lon with only two decimals after the digit, like Twitter wants X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=179debf197d443c85d73d6e837aa990f9ff6acd2;p=tweepy.git Now push lat/lon with only two decimals after the digit, like Twitter wants --- 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)