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
431dd761
Commit
431dd761
authored
Feb 21, 2014
by
Aaron Hill
Browse files
Encode stream parameters
parent
6adf9c7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/streaming.py
View file @
431dd761
...
...
@@ -299,9 +299,10 @@ class Stream(object):
self
.
url
=
'/%s/statuses/filter.json'
%
STREAM_VERSION
if
follow
:
encoded_follow
=
[
s
.
encode
(
encoding
)
for
s
in
follow
]
self
.
session
.
params
[
'follow'
]
=
','
.
join
(
map
(
str
,
follow
)
)
self
.
session
.
params
[
'follow'
]
=
','
.
join
(
encoded_
follow
)
if
track
:
self
.
session
.
params
[
'track'
]
=
','
.
join
(
map
(
str
,
track
))
encoded_track
=
[
s
.
encode
(
encoding
)
for
s
in
track
]
self
.
session
.
params
[
'track'
]
=
','
.
join
(
encoded_track
)
if
locations
and
len
(
locations
)
>
0
:
if
len
(
locations
)
%
4
!=
0
:
raise
TweepError
(
"Wrong number of locations points, "
...
...
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