projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
179debf
)
Stream now accepts an authentication instance.
author
Josh Roesslein
<jroesslein@gmail.com>
Sun, 10 Oct 2010 03:39:38 +0000
(22:39 -0500)
committer
Josh Roesslein
<jroesslein@gmail.com>
Sun, 10 Oct 2010 03:39:38 +0000
(22:39 -0500)
It should now be possible to authenticate with
the streaming API by either using BasicAuthHandler or
OAuthHandler.
tweepy/streaming.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/streaming.py
b/tweepy/streaming.py
index fa64c44fb8f585677f3bbf4b43f189e6c31db533..b22764c2ccae357814d0b8ac7e1cd375559d0479 100644
(file)
--- a/
tweepy/streaming.py
+++ b/
tweepy/streaming.py
@@
-68,9
+68,9
@@
class Stream(object):
host = 'stream.twitter.com'
- def __init__(self,
username, password
, listener, timeout=5.0, retry_count = None,
+ def __init__(self,
auth
, listener, timeout=5.0, retry_count = None,
retry_time = 10.0, snooze_time = 5.0, buffer_size=1500, headers=None):
- self.auth =
BasicAuthHandler(username, password)
+ self.auth =
auth
self.running = False
self.timeout = timeout
self.retry_count = retry_count