Commit 13814fdf authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Stream now accepts an authentication instance.

It should now be possible to authenticate with
the streaming API by either using BasicAuthHandler or
OAuthHandler.
parent 179debf1
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment