Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
179debf1
Commit
179debf1
authored
Aug 16, 2010
by
Sam Kaufman
Committed by
Joshua Roesslein
Sep 18, 2010
Browse files
Now push lat/lon with only two decimals after the digit, like Twitter wants
parent
3d51a653
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/streaming.py
View file @
179debf1
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment