projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d51a65
)
Now push lat/lon with only two decimals after the digit, like Twitter wants
author
Sam Kaufman
<emrysk@gmail.com>
Sun, 15 Aug 2010 20:37:00 +0000
(
04:37
+0800)
committer
Joshua Roesslein
<jroesslein@gmail.com>
Sat, 18 Sep 2010 03:16:27 +0000
(11:16 +0800)
tweepy/streaming.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/streaming.py
b/tweepy/streaming.py
index 30f5faa1c348472085d6bf25db72c2d3a444b4f7..fa64c44fb8f585677f3bbf4b43f189e6c31db533 100644
(file)
--- 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)