Skip to content

Commit

Permalink
Merge pull request psf#840 from gareth-lloyd/develop
Browse files Browse the repository at this point in the history
add prefetch=False to streaming example
  • Loading branch information
Kenneth Reitz committed Sep 7, 2012
2 parents c8f166f + d9a8556 commit 41ca8ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user/advanced.rst
Expand Up @@ -283,7 +283,7 @@ To use the Twitter Streaming API to track the keyword "requests"::
import json

r = requests.post('https://stream.twitter.com/1/statuses/filter.json',
data={'track': 'requests'}, auth=('username', 'password'))
data={'track': 'requests'}, auth=('username', 'password'), prefetch=False)

for line in r.iter_lines():
if line: # filter out keep-alive new lines
Expand Down

0 comments on commit 41ca8ed

Please sign in to comment.