Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit 78d9976

Browse files
Moved languages parameter for GetStreamFilter() function to the end.
1 parent 2b25d70 commit 78d9976

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

twitter/api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4465,14 +4465,14 @@ def GetStreamFilter(self,
44654465
locations:
44664466
A list of Longitude,Latitude pairs (as strings) specifying
44674467
bounding boxes for the tweets' origin. [Optional]
4468-
languages:
4469-
A list of Languages.
4470-
Will only return Tweets that have been detected as being
4471-
written in the specified languages. [Optional]
44724468
delimited:
44734469
Specifies a message length. [Optional]
44744470
stall_warnings:
44754471
Set to True to have Twitter deliver stall warnings. [Optional]
4472+
languages:
4473+
A list of Languages.
4474+
Will only return Tweets that have been detected as being
4475+
written in the specified languages. [Optional]
44764476
44774477
Returns:
44784478
A twitter stream
@@ -4487,12 +4487,12 @@ def GetStreamFilter(self,
44874487
data['track'] = ','.join(track)
44884488
if locations is not None:
44894489
data['locations'] = ','.join(locations)
4490-
if languages is not None:
4491-
data['language'] = ','.join(languages)
44924490
if delimited is not None:
44934491
data['delimited'] = str(delimited)
44944492
if stall_warnings is not None:
44954493
data['stall_warnings'] = str(stall_warnings)
4494+
if languages is not None:
4495+
data['language'] = ','.join(languages)
44964496

44974497
resp = self._RequestStream(url, 'POST', data=data)
44984498
for line in resp.iter_lines():

0 commit comments

Comments
 (0)